[pypy-svn] r48909 - pypy/branch/ropes-unicode/pypy/rlib

cfbolz at codespeak.net cfbolz at codespeak.net
Wed Nov 21 18:30:52 CET 2007


Author: cfbolz
Date: Wed Nov 21 18:30:51 2007
New Revision: 48909

Modified:
   pypy/branch/ropes-unicode/pypy/rlib/runicode.py
Log:
try to make the annotator happier


Modified: pypy/branch/ropes-unicode/pypy/rlib/runicode.py
==============================================================================
--- pypy/branch/ropes-unicode/pypy/rlib/runicode.py	(original)
+++ pypy/branch/ropes-unicode/pypy/rlib/runicode.py	Wed Nov 21 18:30:51 2007
@@ -13,6 +13,7 @@
     else:
         raise UnicodeEncodeError(
                 encoding, s[startingpos], startingpos, endingpos, msg)
+raise_unicode_exception._annspecialcase_ = "specialize:arg(6)"
 
 # ____________________________________________________________ 
 # unicode decoding
@@ -235,7 +236,7 @@
             if not final:
                 break
             r, pos = errorhandler(errors, 'utf-16', "truncated data",
-                                s, pos, len(s), True)
+                                  s, pos, len(s))
             result.append(r)
             if len(s) - pos < 2:
                 break



More information about the Pypy-commit mailing list