mirror of
https://github.com/django-q2/django-q2.git
synced 2026-10-02 07:48:12 +08:00
Import python3 version of range
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user