Skip to content

Commit

Permalink
Use packaged dbfpy
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb committed Mar 12, 2019
1 parent 25a66f9 commit 95cfef3
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pandas
pyyaml
xlrd
xlwt
dbfpy
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'xlrd',
'xlwt',
'pyyaml',
'dbfpy',
]


Expand Down
1 change: 0 additions & 1 deletion tablib/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from tablib.packages.statistics import median
from itertools import izip_longest
from backports import csv
import tablib.packages.dbfpy as dbfpy

unicode = unicode
xrange = xrange
9 changes: 5 additions & 4 deletions tablib/formats/_dbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,19 @@
import os

from tablib.compat import StringIO
from tablib.compat import dbfpy
from tablib.compat import is_py3

if is_py3:
from tablib.compat import dbfpy
from tablib.packages.dbfpy3 import dbf
from tablib.packages.dbfpy3 import dbfnew
from tablib.packages.dbfpy3 import record as dbfrecord
import io
else:
from tablib.packages.dbfpy import dbf
from tablib.packages.dbfpy import dbfnew
from tablib.packages.dbfpy import record as dbfrecord
import dbfpy
from dbfpy import dbf
from dbfpy import dbfnew
from dbfpy import record as dbfrecord


title = 'dbf'
Expand Down

0 comments on commit 95cfef3

Please sign in to comment.