[pypy-svn] r79665 - pypy/trunk/lib_pypy
arigo at codespeak.net
arigo at codespeak.net
Tue Nov 30 13:03:58 CET 2010
Author: arigo
Date: Tue Nov 30 13:03:57 2010
New Revision: 79665
Modified:
pypy/trunk/lib_pypy/_hashlib.py
Log:
Add 'builtinify' as a decorator.
Modified: pypy/trunk/lib_pypy/_hashlib.py
==============================================================================
--- pypy/trunk/lib_pypy/_hashlib.py (original)
+++ pypy/trunk/lib_pypy/_hashlib.py Tue Nov 30 13:03:57 2010
@@ -148,21 +148,29 @@
return hash(ctx, name)
# shortcut functions
+from __pypy__ import builtinify
+
+ at builtinify
def openssl_md5(string=''):
return new('md5', string)
+ at builtinify
def openssl_sha1(string=''):
return new('sha1', string)
+ at builtinify
def openssl_sha224(string=''):
return new('sha224', string)
+ at builtinify
def openssl_sha256(string=''):
return new('sha256', string)
+ at builtinify
def openssl_sha384(string=''):
return new('sha384', string)
+ at builtinify
def openssl_sha512(string=''):
return new('sha512', string)
More information about the Pypy-commit
mailing list