[pypy-commit] pypy unicode-utf8-py3: fix to loop infinitely like CPython

mattip pypy.commits at gmail.com
Tue Oct 16 13:19:02 EDT 2018


Author: Matti Picus <matti.picus at gmail.com>
Branch: unicode-utf8-py3
Changeset: r95220:874dfeb1a872
Date: 2018-10-16 20:18 +0300
http://bitbucket.org/pypy/pypy/changeset/874dfeb1a872/

Log:	fix to loop infinitely like CPython

diff --git a/pypy/interpreter/unicodehelper.py b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -1548,8 +1548,6 @@
                                     "truncated input",
                                     s, pos, size)
             result.append(res)
-            if pos > size - unicode_bytes:
-                break
             continue
         t = r_uint(0)
         h = 0


More information about the pypy-commit mailing list