Import python3 version of range

This commit is contained in:
Benjamin Bach
2017-07-09 21:44:25 +02:00
parent ab48bad0f6
commit 5ea55e3718
6 changed files with 20 additions and 2 deletions
+14
View File
@@ -0,0 +1,14 @@
from __future__ import absolute_import
"""
Compatibility layer.
Intentionally replaces use of python-future
"""
# https://github.com/Koed00/django-q/issues/4
try:
range = xrange
except NameError:
range = range