Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Used a Python 3-compatible syntax for building a translation table

  • Loading branch information...
commit 690cabe2033b43999f576cbe581b8f465903eda0 1 parent 00ace01
@claudep claudep authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 django/utils/crypto.py
View
4 django/utils/crypto.py
@@ -27,8 +27,8 @@
from django.utils.six.moves import xrange
-_trans_5c = b"".join([chr(x ^ 0x5C) for x in xrange(256)])
-_trans_36 = b"".join([chr(x ^ 0x36) for x in xrange(256)])
+_trans_5c = bytearray([(x ^ 0x5C) for x in xrange(256)])
+_trans_36 = bytearray([(x ^ 0x36) for x in xrange(256)])
def salted_hmac(key_salt, value, secret=None):
Please sign in to comment.
Something went wrong with that request. Please try again.