Author: Matti Picus <matti.pi...@gmail.com>
Branch: py3.5
Changeset: r95342:e1b0f8e6c29c
Date: 2018-11-18 21:11 -0800
http://bitbucket.org/pypy/pypy/changeset/e1b0f8e6c29c/

Log:    use old buffer interface

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
@@ -539,7 +539,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
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to