[pypy-svn] r78487 - pypy/branch/fast-forward/pypy/module/_hashlib

afa at codespeak.net afa at codespeak.net
Fri Oct 29 22:30:01 CEST 2010


Author: afa
Date: Fri Oct 29 22:30:00 2010
New Revision: 78487

Modified:
   pypy/branch/fast-forward/pypy/module/_hashlib/__init__.py
Log:
Expose the same _hashlib items as CPython


Modified: pypy/branch/fast-forward/pypy/module/_hashlib/__init__.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_hashlib/__init__.py	(original)
+++ pypy/branch/fast-forward/pypy/module/_hashlib/__init__.py	Fri Oct 29 22:30:00 2010
@@ -5,14 +5,13 @@
 class Module(MixedModule):
     interpleveldefs = {
         'new' : 'interp_hashlib.new',
-        'HASH': 'interp_hashlib.W_Hash',
         }
 
     appleveldefs = {
         }
 
     for name in algorithms:
-        interpleveldefs[name] = 'interp_hashlib.new_%s' % (name,)
+        interpleveldefs['openssl_' + name] = 'interp_hashlib.new_' + name
 
     def startup(self, space):
         from pypy.rlib.ropenssl import init_digests



More information about the Pypy-commit mailing list