[pypy-commit] pypy py3k: Fix the Print part of the read-eval-print loop.

amauryfa noreply at buildbot.pypy.org
Tue Oct 18 08:28:27 CEST 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: py3k
Changeset: r48184:c7013541688e
Date: 2011-10-18 01:28 +0200
http://bitbucket.org/pypy/pypy/changeset/c7013541688e/

Log:	Fix the Print part of the read-eval-print loop.

diff --git a/pypy/interpreter/pyopcode.py b/pypy/interpreter/pyopcode.py
--- a/pypy/interpreter/pyopcode.py
+++ b/pypy/interpreter/pyopcode.py
@@ -1345,7 +1345,7 @@
 
         # give to write() an argument which is either a string or a unicode
         # (and let it deals itself with unicode handling)
-        if not isinstance(x, unicode):
+        if not isinstance(x, str):
             x = str(x)
         stream.write(x)
 


More information about the pypy-commit mailing list