]> arthur.barton.de Git - bup.git/blobdiff - lib/bup/compat.py
compat: add range and use it in the vfs
[bup.git] / lib / bup / compat.py
index 8a142822f4f84d7f00441d7224864b5f478a1958..895a84a3da86ac65c63ba184e94c341cdef15d14 100644 (file)
@@ -11,6 +11,7 @@ py3 = py_maj >= 3
 
 if py3:
 
+    range = range
     str_type = str
 
     def add_ex_tb(ex):
@@ -26,6 +27,7 @@ if py3:
 
 else:  # Python 2
 
+    range = xrange
     str_type = basestring
 
     def add_ex_tb(ex):