[pypy-commit] pypy default: Fix copy/paste mistake.

amauryfa noreply at buildbot.pypy.org
Wed Sep 17 22:19:42 CEST 2014


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r73591:568f6f6ef786
Date: 2014-09-17 22:19 +0200
http://bitbucket.org/pypy/pypy/changeset/568f6f6ef786/

Log:	Fix copy/paste mistake. Unit test will follow.

diff --git a/pypy/interpreter/pyparser/parsestring.py b/pypy/interpreter/pyparser/parsestring.py
--- a/pypy/interpreter/pyparser/parsestring.py
+++ b/pypy/interpreter/pyparser/parsestring.py
@@ -227,7 +227,7 @@
 def decode_utf8_recode(space, s, ps, end, recode_encoding):
     u, ps = decode_utf8(space, s, ps, end)
     w_v = unicodehelper.encode(space, space.wrap(u), recode_encoding)
-    v = space.bytes_w(w_v)
+    v = space.str_w(w_v)
     return v, ps
 
 def raise_app_valueerror(space, msg):


More information about the pypy-commit mailing list