Author: fijal
Branch: unicode-utf8
Changeset: r92641:0013993b27a1
Date: 2017-10-07 18:42 +0200
http://bitbucket.org/pypy/pypy/changeset/0013993b27a1/

Log:    is this code never executed in tests?

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
@@ -426,7 +426,7 @@
             if start > 0:
                 start_index = rutf8.codepoint_position_at_index(self._utf8,
                     storage, start)
-            if end != self.length:
+            if end != self._length:
                 end_index = rutf8.codepoint_position_at_index(self._utf8,
                     storage, end)
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to