[pypy-commit] pypy default: Whitespace fixes, MD5 -> SHA
Laurens Van Houtven
noreply at buildbot.pypy.org
Tue Dec 17 23:24:21 CET 2013
Author: Laurens Van Houtven <_ at lvh.io>
Branch:
Changeset: r68447:555be03b98bf
Date: 2013-09-28 12:02 +0200
http://bitbucket.org/pypy/pypy/changeset/555be03b98bf/
Log: Whitespace fixes, MD5 -> SHA
diff --git a/lib_pypy/_sha.py b/lib_pypy/_sha.py
--- a/lib_pypy/_sha.py
+++ b/lib_pypy/_sha.py
@@ -115,14 +115,14 @@
]
class sha:
- "An implementation of the MD5 hash function in pure Python."
+ "An implementation of the SHA hash function in pure Python."
digest_size = digestsize = 20
block_size = 1
def __init__(self):
"Initialisation."
-
+
# Initial message length in bits(!).
self.length = 0
self.count = [0, 0]
@@ -209,7 +209,7 @@
self.H2 = (self.H2 + C) & 0xffffffff
self.H3 = (self.H3 + D) & 0xffffffff
self.H4 = (self.H4 + E) & 0xffffffff
-
+
# Down from here all methods follow the Python Standard Library
# API of the sha module.
@@ -295,13 +295,13 @@
_long2bytesBigEndian(self.H3, 4) + \
_long2bytesBigEndian(self.H4, 4)
- self.H0 = H0
- self.H1 = H1
+ self.H0 = H0
+ self.H1 = H1
self.H2 = H2
self.H3 = H3
self.H4 = H4
- self.input = input
- self.count = count
+ self.input = input
+ self.count = count
return digest
More information about the pypy-commit
mailing list