[pypy-svn] r37341 - pypy/dist/pypy/lib

arigo at codespeak.net arigo at codespeak.net
Thu Jan 25 16:54:53 CET 2007


Author: arigo
Date: Thu Jan 25 16:54:51 2007
New Revision: 37341

Modified:
   pypy/dist/pypy/lib/md5.py
Log:
A follow-up of r35713.  The obvious solution can be hard to see when
you're looking at 40 lines of obscure code.


Modified: pypy/dist/pypy/lib/md5.py
==============================================================================
--- pypy/dist/pypy/lib/md5.py	(original)
+++ pypy/dist/pypy/lib/md5.py	Thu Jan 25 16:54:51 2007
@@ -319,10 +319,7 @@
         self._transform(bits)
 
         # Store state in digest.
-        digest = (struct.pack("<I", self.A) +
-                  struct.pack("<I", self.B) +
-                  struct.pack("<I", self.C) +
-                  struct.pack("<I", self.D))
+        digest = struct.pack("<IIII", self.A, self.B, self.C, self.D)
 
         self.A = A 
         self.B = B



More information about the Pypy-commit mailing list