aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Kearns <bdkearns@gmail.com>2013-03-08 05:54:25 -0500
committerBrian Kearns <bdkearns@gmail.com>2013-03-08 05:54:25 -0500
commit399588595ef8b87d11af4ebb095ce41859c1c200 (patch)
tree8b784dd45886f324f392f2890168279bc40cc12e
parentmore datetime cleanups (diff)
downloadpypy-399588595ef8b87d11af4ebb095ce41859c1c200.tar.gz
pypy-399588595ef8b87d11af4ebb095ce41859c1c200.tar.bz2
pypy-399588595ef8b87d11af4ebb095ce41859c1c200.zip
reduce diff with py3k
-rw-r--r--lib_pypy/_sha.py2
-rw-r--r--lib_pypy/_sha512.py2
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,