[pypy-commit] pypy unicode-utf8: fix one place and remove done TODO items
fijal
pypy.commits at gmail.com
Mon Dec 11 01:47:35 EST 2017
Author: fijal
Branch: unicode-utf8
Changeset: r93359:8243e781313a
Date: 2017-12-11 08:46 +0200
http://bitbucket.org/pypy/pypy/changeset/8243e781313a/
Log: fix one place and remove done TODO items
diff --git a/TODO b/TODO
--- a/TODO
+++ b/TODO
@@ -1,15 +1,6 @@
-* rutf8.prev_codepoint_pos should use r_uint
* find a better way to run "find" without creating the index storage,
if one is not already readily available
-* fix _pypyjson
-* fix cpyext
* write the correct jit_elidable in _get_index_storage
-* better flag handling in split/splitlines maybe?
-* encode_error_handler has XXX
-* remove assertions from W_UnicodeObject.__init__ if all the builders pass
-* what to do with error handlers that go backwards. There were tests
- in test_codecs that would check for that
* improve performance of splitlines
-
* fix _pypyjson to not use a wrapped dict when decoding an object
-* make sure we review all the places that call ord(unichr) to check for ValueErrors
\ No newline at end of file
+* make sure we review all the places that call ord(unichr) to check for ValueErrors
diff --git a/pypy/interpreter/unicodehelper.py b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -27,7 +27,7 @@
# Fast version of the "strict" errors handler.
def raise_unicode_exception_encode(errors, encoding, msg, utf8,
startingpos, endingpos):
- u_len = rutf8.check_utf8(utf8, True)
+ u_len = rutf8.get_utf8_length(utf8, True)
raise OperationError(space.w_UnicodeEncodeError,
space.newtuple([space.newtext(encoding),
space.newutf8(utf8, u_len),
More information about the pypy-commit
mailing list