[pypy-svn] r46989 - in pypy/dist/pypy/rlib: . test

arigo at codespeak.net arigo at codespeak.net
Fri Sep 28 11:09:40 CEST 2007


Author: arigo
Date: Fri Sep 28 11:09:39 2007
New Revision: 46989

Added:
   pypy/dist/pypy/rlib/rsha.py
      - copied, changed from r46987, pypy/dist/pypy/lib/sha.py
   pypy/dist/pypy/rlib/test/test_rsha.py
      - copied, changed from r46987, pypy/dist/pypy/lib/app_test/test_sha_extra.py
Modified:
   pypy/dist/pypy/rlib/rmd5.py
Log:
Ported lib/sha to rlib/rsha while I'm at it.


Modified: pypy/dist/pypy/rlib/rmd5.py
==============================================================================
--- pypy/dist/pypy/rlib/rmd5.py	(original)
+++ pypy/dist/pypy/rlib/rmd5.py	Fri Sep 28 11:09:39 2007
@@ -67,6 +67,9 @@
         ])
 
 def _string2uintlist(s, start=0, count=16):
+    """Build a list of count r_uint's by unpacking the string
+    s[start:start+4*count] in little-endian order.
+    """
     result = []
     for i in range(count):
         p = start + i * 4



More information about the Pypy-commit mailing list