[pypy-commit] pypy py3k: algorithm names should be returned as strs

dusty noreply at buildbot.pypy.org
Tue Mar 13 06:41:03 CET 2012


Author: Dusty Phillips <dusty at buchuki.com>
Branch: py3k
Changeset: r53413:c0c9c49ce2de
Date: 2012-03-12 21:56 -0700
http://bitbucket.org/pypy/pypy/changeset/c0c9c49ce2de/

Log:	algorithm names should be returned as strs

diff --git a/pypy/module/_hashlib/interp_hashlib.py b/pypy/module/_hashlib/interp_hashlib.py
--- a/pypy/module/_hashlib/interp_hashlib.py
+++ b/pypy/module/_hashlib/interp_hashlib.py
@@ -31,7 +31,7 @@
     if obj_name[0].c_alias:
         return
     try:
-        w_name = state.space.wrapbytes(rffi.charp2str(obj_name[0].c_name))
+        w_name = state.space.wrap(rffi.charp2str(obj_name[0].c_name))
         state.space.call_method(state.w_meth_names, "add", w_name)
     except OperationError as e:
         state.w_error = e


More information about the pypy-commit mailing list