summaryrefslogtreecommitdiff
path: root/django/utils/crypto.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2012-07-20 18:53:11 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2012-07-22 09:29:56 +0200
commita84d79f572fbe7512b999c6b3cd7667cbe3138ff (patch)
tree7d17f74640d7d0437c7cd87816b29bcd0cdb2ca7 /django/utils/crypto.py
parentca07fda2efea24cb43423b884fa4648d44e52963 (diff)
[py3] Added Python 3 compatibility for xrange.
Diffstat (limited to 'django/utils/crypto.py')
-rw-r--r--django/utils/crypto.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/django/utils/crypto.py b/django/utils/crypto.py
index 8c9649eef1..67b628625e 100644
--- a/django/utils/crypto.py
+++ b/django/utils/crypto.py
@@ -24,6 +24,7 @@ except NotImplementedError:
from django.conf import settings
from django.utils.encoding import smart_str
+from django.utils.six.moves import xrange
_trans_5c = b"".join([chr(x ^ 0x5C) for x in xrange(256)])