diff options
author | Brian Kearns <bdkearns@gmail.com> | 2013-03-08 05:54:25 -0500 |
---|---|---|
committer | Brian Kearns <bdkearns@gmail.com> | 2013-03-08 05:54:25 -0500 |
commit | 399588595ef8b87d11af4ebb095ce41859c1c200 (patch) | |
tree | 8b784dd45886f324f392f2890168279bc40cc12e | |
parent | more datetime cleanups (diff) | |
download | pypy-399588595ef8b87d11af4ebb095ce41859c1c200.tar.gz pypy-399588595ef8b87d11af4ebb095ce41859c1c200.tar.bz2 pypy-399588595ef8b87d11af4ebb095ce41859c1c200.zip |
reduce diff with py3k
-rw-r--r-- | lib_pypy/_sha.py | 2 | ||||
-rw-r--r-- | lib_pypy/_sha512.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lib_pypy/_sha.py b/lib_pypy/_sha.py index cde0a56bcc..de7d11cf7d 100644 --- a/lib_pypy/_sha.py +++ b/lib_pypy/_sha.py @@ -35,7 +35,7 @@ def _long2bytesBigEndian(n, blocksize=0): """ # After much testing, this algorithm was deemed to be the fastest. - s = '' + s = b'' pack = struct.pack while n > 0: s = pack('>I', n & 0xffffffff) + s diff --git a/lib_pypy/_sha512.py b/lib_pypy/_sha512.py index a8029d0ee3..c3f7dc46b2 100644 --- a/lib_pypy/_sha512.py +++ b/lib_pypy/_sha512.py @@ -10,7 +10,7 @@ SHA_DIGESTSIZE = 64 def new_shaobject(): return { - 'digest': [0L]*8, + 'digest': [0]*8, 'count_lo': 0, 'count_hi': 0, 'data': [0]* SHA_BLOCKSIZE, |