[pypy-svn] r16952 - pypy/release/0.7.x/pypy/module/_codecs

ac at codespeak.net ac at codespeak.net
Sun Aug 28 11:38:32 CEST 2005


Author: ac
Date: Sun Aug 28 11:38:32 2005
New Revision: 16952

Modified:
   pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py
Log:
Fix bad range check.

Modified: pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py
==============================================================================
--- pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py	(original)
+++ pypy/release/0.7.x/pypy/module/_codecs/app_codecs.py	Sun Aug 28 11:38:32 2005
@@ -1690,7 +1690,7 @@
         else:
     #ifndef Py_UNICODE_WIDE
             if sys.maxunicode > 0xffff:
-                if (x > 0x10000):
+                if (x > sys.maxunicode):
                     res = unicode_call_errorhandler(
                         errors, "rawunicodeescape", "\\Uxxxxxxxx out of range",
                         s, size, pos, pos+1)



More information about the Pypy-commit mailing list