commit/galaxy-central: dan: Fix for generating password via pbkdf2_bin for Python < 2.6.8
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/72f47fad3d21/ Changeset: 72f47fad3d21 User: dan Date: 2013-05-10 16:14:49 Summary: Fix for generating password via pbkdf2_bin for Python < 2.6.8 Affected #: 1 file diff -r 41cbbcb908236c14818dfb2b3372ea545ece718b -r 72f47fad3d219d44988d672dc41f30748ba8d5ff lib/galaxy/security/passwords.py --- a/lib/galaxy/security/passwords.py +++ b/lib/galaxy/security/passwords.py @@ -70,7 +70,7 @@ rv = u = _pseudorandom(salt + _pack_int(block)) for i in xrange(iterations - 1): u = _pseudorandom(''.join(map(chr, u))) - rv = starmap(xor, izip(rv, u)) + rv = starmap( xor, zip( rv, u ) ) #Python < 2.6.8: starmap requires function inputs to be tuples, so we need to use zip instead of izip buf.extend(rv) return ''.join(map(chr, buf))[:keylen] Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org