Author: Brian Kearns <[email protected]>
Branch:
Changeset: r62226:5d07492ad82c
Date: 2013-03-08 05:54 -0500
http://bitbucket.org/pypy/pypy/changeset/5d07492ad82c/
Log: reduce diff with py3k
diff --git a/lib_pypy/_sha.py b/lib_pypy/_sha.py
--- a/lib_pypy/_sha.py
+++ b/lib_pypy/_sha.py
@@ -35,7 +35,7 @@
"""
# 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
--- a/lib_pypy/_sha512.py
+++ b/lib_pypy/_sha512.py
@@ -10,7 +10,7 @@
def new_shaobject():
return {
- 'digest': [0L]*8,
+ 'digest': [0]*8,
'count_lo': 0,
'count_hi': 0,
'data': [0]* SHA_BLOCKSIZE,
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit