Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r69081:835b774e50f6
Date: 2014-02-04 15:09 -0800
http://bitbucket.org/pypy/pypy/changeset/835b774e50f6/

Log:    this is probably the intended workaround for the tests. fixes
        unicode handling issue1574

diff --git a/lib_pypy/pyrepl/reader.py b/lib_pypy/pyrepl/reader.py
--- a/lib_pypy/pyrepl/reader.py
+++ b/lib_pypy/pyrepl/reader.py
@@ -58,7 +58,7 @@
         else:
             return c
 
-if 'a'[0] == 'a':
+if 'a'[0] == b'a':
     # When running tests with python2, bytes characters are bytes.
     def _my_unctrl(c, uc=_my_unctrl):
         return uc(ord(c))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to