[pypy-svn] r75671 - pypy/branch/interplevel-codecs/pypy/rlib

afa at codespeak.net afa at codespeak.net
Wed Jun 30 10:52:11 CEST 2010


Author: afa
Date: Wed Jun 30 10:52:09 2010
New Revision: 75671

Modified:
   pypy/branch/interplevel-codecs/pypy/rlib/runicode.py
Log:
oops, I broke a test: chr(127) prints as '\x7f'


Modified: pypy/branch/interplevel-codecs/pypy/rlib/runicode.py
==============================================================================
--- pypy/branch/interplevel-codecs/pypy/rlib/runicode.py	(original)
+++ pypy/branch/interplevel-codecs/pypy/rlib/runicode.py	Wed Jun 30 10:52:09 2010
@@ -995,7 +995,7 @@
             result.append('\\\\')
 
         # Map non-printable or non-ascii to '\xhh' or '\uhhhh'
-        elif oc < 32 or oc > 0x7F:
+        elif oc < 32 or oc >= 0x7F:
             raw_unicode_escape_helper(result, oc)
 
         # Copy everything else as-is



More information about the Pypy-commit mailing list