[pypy-commit] pypy unicode-utf8: is this code never executed in tests?

fijal pypy.commits at gmail.com
Sat Oct 7 12:43:05 EDT 2017


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)
 


More information about the pypy-commit mailing list