summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
Diffstat (limited to 'tablib')
-rw-r--r--tablib/compat.py2
-rw-r--r--tablib/formats/_xls.py2
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'