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

hpk at codespeak.net hpk at codespeak.net
Sun Jul 13 20:43:24 CEST 2008


Author: hpk
Date: Sun Jul 13 20:43:23 2008
New Revision: 56524

Modified:
   pypy/dist/pypy/lib/hashlib.py
Log:
fix little issues. (aka should != does)


Modified: pypy/dist/pypy/lib/hashlib.py
==============================================================================
--- pypy/dist/pypy/lib/hashlib.py	(original)
+++ pypy/dist/pypy/lib/hashlib.py	Sun Jul 13 20:43:23 2008
@@ -50,6 +50,7 @@
     'a4337bc45a8fc544c03f52dc550cd6e1e87021bc896588bd79e901e2'
 
 """
+import _hashlib
 
 
 def __get_builtin_constructor(name):
@@ -74,11 +75,10 @@
         # the OpenSSL library prior to 0.9.8 doesn't provide them.
         return __get_builtin_constructor(name)(string)
 
+new = __hash_new
 
 def _setfuncs():
-    import _hashlib
     # use the wrapper of the C implementation
-    new = __hash_new
 
     sslprefix = 'openssl_'
     for opensslfuncname, func in vars(_hashlib).items():



More information about the Pypy-commit mailing list