[pypy-commit] pypy unicode-utf8: RPythonize hacks
fijal
pypy.commits at gmail.com
Sat Oct 7 09:10:09 EDT 2017
Author: fijal
Branch: unicode-utf8
Changeset: r92606:af0fec89c369
Date: 2017-10-05 13:50 +0200
http://bitbucket.org/pypy/pypy/changeset/af0fec89c369/
Log: RPythonize hacks
diff --git a/pypy/objspace/std/unicodeobject.py b/pypy/objspace/std/unicodeobject.py
--- a/pypy/objspace/std/unicodeobject.py
+++ b/pypy/objspace/std/unicodeobject.py
@@ -835,7 +835,7 @@
try:
lgt = rutf8.check_utf8(s, allow_surrogates=True)
except rutf8.CheckError:
- XXX
+ assert False, "fix in the future"
eh = unicodehelper.decode_error_handler(space)
eh(None, 'utf8', e.msg, s, e.startpos, e.endpos)
assert False, "has to raise"
More information about the pypy-commit
mailing list