Commits

Amaury Forgeot d'Arc  committed 21f2905

If it's decoded, it was certainly a bytes string.

  • Participants
  • Parent commits 4bd535d
  • Branches py3k

Comments (0)

Files changed (1)

File pypy/module/_ssl/interp_ssl.py

         length = libssl_ASN1_STRING_to_UTF8(buf_ptr, value)
         if length < 0:
             raise _ssl_seterror(space, None, 0)
-        w_value = space.wrap(rffi.charpsize2str(buf_ptr[0], length))
+        w_value = space.wrapbytes(rffi.charpsize2str(buf_ptr[0], length))
         w_value = space.call_method(w_value, "decode", space.wrap("utf-8"))
 
     return space.newtuple([w_name, w_value])