[pypy-commit] pypy unicode-utf8-py3: fix 98c9d750a001
mattip
pypy.commits at gmail.com
Mon Jan 21 01:17:30 EST 2019
Author: Matti Picus <matti.picus at gmail.com>
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"
More information about the pypy-commit
mailing list