Skip to content

Commit

Permalink
Used a Python 3-compatible syntax for building a translation table
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Jul 22, 2012
1 parent 00ace01 commit 690cabe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions django/utils/crypto.py
Expand Up @@ -27,8 +27,8 @@
from django.utils.six.moves import xrange from django.utils.six.moves import xrange




_trans_5c = b"".join([chr(x ^ 0x5C) for x in xrange(256)]) _trans_5c = bytearray([(x ^ 0x5C) for x in xrange(256)])
_trans_36 = b"".join([chr(x ^ 0x36) for x in xrange(256)]) _trans_36 = bytearray([(x ^ 0x36) for x in xrange(256)])




def salted_hmac(key_salt, value, secret=None): def salted_hmac(key_salt, value, secret=None):
Expand Down

0 comments on commit 690cabe

Please sign in to comment.