Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95344:3e70370ebc0e
Date: 2018-11-18 21:15 -0800
http://bitbucket.org/pypy/pypy/changeset/3e70370ebc0e/
Log: merge py3.5 into branch
diff --git a/pypy/module/cpyext/unicodeobject.py
b/pypy/module/cpyext/unicodeobject.py
--- a/pypy/module/cpyext/unicodeobject.py
+++ b/pypy/module/cpyext/unicodeobject.py
@@ -548,7 +548,7 @@
elif space.isinstance_w(w_obj, space.w_bytearray): # Python 2.x specific
raise oefmt(space.w_TypeError, "decoding bytearray is not supported")
else:
- s = space.buffer_w(w_obj, 0)
+ s = space.charbuf_w(w_obj)
return _pyunicode_decode(space, s, encoding, errors)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit