Author: Dusty Phillips <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to