Author: fijal Branch: unicode-utf8 Changeset: r90461:94c5b4b5fb85 Date: 2017-03-01 19:24 +0100 http://bitbucket.org/pypy/pypy/changeset/94c5b4b5fb85/
Log: get things going for now 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 @@ -122,8 +122,6 @@ return rutf8.compute_length_utf8(self._utf8) def _val(self, space): - import pdb - pdb.set_trace() return self._utf8.decode('utf8') @staticmethod diff --git a/rpython/rlib/rstring.py b/rpython/rlib/rstring.py --- a/rpython/rlib/rstring.py +++ b/rpython/rlib/rstring.py @@ -30,7 +30,7 @@ assert isinstance(char, unicode) return unicodedb.isspace(ord(char)) -@specialize.arg(2) +@specialize.ll_and_arg(2) def _incr(s, pos, isutf8): from rpython.rlib.rutf8 import next_codepoint_pos @@ -130,7 +130,7 @@ while True: # starting from the end, find the end of the next word while i >= 0: - if not _isspace(value[i]): + if not _isspace(value, i): break # found i -= 1 else: @@ -142,7 +142,7 @@ j = -1 # take all the rest of the string else: j = i - 1 - while j >= 0 and not _isspace(value[j]): + while j >= 0 and not _isspace(value, j): j -= 1 maxsplit -= 1 # NB. if it's already < 0, it stays < 0 _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit