[pypy-svn] r78568 - pypy/branch/fast-forward/pypy/module/_hashlib
afa at codespeak.net
afa at codespeak.net
Sat Oct 30 20:36:24 CEST 2010
Author: afa
Date: Sat Oct 30 20:36:22 2010
New Revision: 78568
Modified:
pypy/branch/fast-forward/pypy/module/_hashlib/interp_hashlib.py
Log:
Rename each function with a different name,
thanks Alex!
Modified: pypy/branch/fast-forward/pypy/module/_hashlib/interp_hashlib.py
==============================================================================
--- pypy/branch/fast-forward/pypy/module/_hashlib/interp_hashlib.py (original)
+++ pypy/branch/fast-forward/pypy/module/_hashlib/interp_hashlib.py Sat Oct 30 20:36:22 2010
@@ -124,8 +124,8 @@
return space.wrap(w_hash)
# shortcut functions
-def make_new_hash(name):
- @func_renamer(newname)
+def make_new_hash(name, funcname):
+ @func_renamer(funcname)
@unwrap_spec(ObjSpace, str)
def new_hash(space, string=''):
return new(space, name, string)
@@ -133,4 +133,4 @@
for name in algorithms:
newname = 'new_%s' % (name,)
- globals()[newname] = make_new_hash(name)
+ globals()[newname] = make_new_hash(name, newname)
More information about the Pypy-commit
mailing list