diff options
| author | Iuri de Silvio <iurisilvio@gmail.com> | 2015-05-27 13:19:36 -0300 |
|---|---|---|
| committer | Iuri de Silvio <iurisilvio@gmail.com> | 2015-05-27 13:19:36 -0300 |
| commit | a785d77901f307ef499621753b078743e2fabb81 (patch) | |
| tree | 340cc2c04d47d275ecb90f0d295930fba2ffcbde /tablib | |
| parent | 24657520e9ebd6c492fd4f81e42fb427febcc972 (diff) | |
| parent | b3485ec942d77ec38775a9dbfcae19bbebf55313 (diff) | |
| download | tablib-a785d77901f307ef499621753b078743e2fabb81.tar.gz | |
Merge pull request #194 from tommyanthony/develop
Fixed a compatibility bug for Python 3
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/compat.py | 2 | ||||
| -rw-r--r-- | tablib/formats/_xls.py | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tablib/compat.py b/tablib/compat.py index d4582d5..e03526d 100644 --- a/tablib/compat.py +++ b/tablib/compat.py @@ -37,6 +37,7 @@ if is_py3: unicode = str bytes = bytes basestring = str + xrange = range else: from cStringIO import StringIO as BytesIO @@ -53,3 +54,4 @@ else: import tablib.packages.dbfpy as dbfpy unicode = unicode + xrange = xrange diff --git a/tablib/formats/_xls.py b/tablib/formats/_xls.py index 67b87ea..787907a 100644 --- a/tablib/formats/_xls.py +++ b/tablib/formats/_xls.py @@ -5,7 +5,7 @@ import sys -from tablib.compat import BytesIO, xlwt, xlrd, XLRDError +from tablib.compat import BytesIO, xlwt, xlrd, XLRDError, xrange import tablib title = 'xls' |
