Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #21362 -- Restored Python 2.5 compatibility.

  • Loading branch information...
commit 848a7594748c0124a208425dbf0fd2cc861995c3 1 parent b149d1f
@apollo13 apollo13 authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 django/utils/crypto.py
View
6 django/utils/crypto.py
@@ -134,9 +134,9 @@ def pbkdf2(password, salt, iterations, dklen=0, digest=None):
inner, outer = digest(), digest()
if len(password) > inner.block_size:
password = digest(password).digest()
- password += b'\x00' * (inner.block_size - len(password))
- inner.update(password.translate(hmac.trans_36))
- outer.update(password.translate(hmac.trans_5C))
+ password += '\x00' * (inner.block_size - len(password))
+ inner.update(password.translate(_trans_36))
+ outer.update(password.translate(_trans_5c))
def F(i):
def U():
Please sign in to comment.
Something went wrong with that request. Please try again.