[pypy-commit] pypy py3.5: fix typo (using unicode-utf8 syntax too early)

mattip pypy.commits at gmail.com
Sun Nov 18 21:58:49 EST 2018


Author: Matti Picus <matti.picus at gmail.com>
Branch: py3.5
Changeset: r95334:064564894563
Date: 2018-11-18 10:59 -0800
http://bitbucket.org/pypy/pypy/changeset/064564894563/

Log:	fix typo (using unicode-utf8 syntax too early)

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
@@ -533,7 +533,7 @@
     if space.isinstance_w(w_obj, space.w_bytes):
         s = space.bytes_w(w_obj)
         if not s:
-            return space.newtext('', 0)
+            return space.newtext('')
     elif space.isinstance_w(w_obj, space.w_unicode):
         raise oefmt(space.w_TypeError, "decoding str is not supported")
     elif space.isinstance_w(w_obj, space.w_bytearray):   # Python 2.x specific


More information about the pypy-commit mailing list