Author: Matti Picus <[email protected]>
Branch: unicode-utf8-py3
Changeset: r95682:53455a64a497
Date: 2019-01-21 08:08 +0200
http://bitbucket.org/pypy/pypy/changeset/53455a64a497/

Log:    fix 98c9d750a001

diff --git a/pypy/interpreter/unicodehelper.py 
b/pypy/interpreter/unicodehelper.py
--- a/pypy/interpreter/unicodehelper.py
+++ b/pypy/interpreter/unicodehelper.py
@@ -433,7 +433,7 @@
                 if not final:
                     pos -= 1
                     break
-                if pos < end and rutf8._invalid_byte_2_of_4(ordch1, s[pos]):
+                if pos < end and rutf8._invalid_byte_2_of_4(ordch1, 
ord(s[pos])):
                     msg = "invalid continuation byte"
                 elif pos + 1 < end and rutf8._invalid_byte_3_of_4(ord(s[pos + 
1])):
                     msg = "invalid continuation byte"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to