diff --git a/AUTHORS b/AUTHORS index bd0e0c4..c23d834 100644 --- a/AUTHORS +++ b/AUTHORS @@ -28,3 +28,4 @@ Patches and Suggestions - Marc Abramowitz - Alex Gaynor - James Douglass +- Tommy Anthony 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'