Author: Matti Picus <matti.pi...@gmail.com>
Branch: unicode-utf8-py3
Changeset: r95133:b87b3bf9ecaf
Date: 2018-09-16 21:27 +0300
http://bitbucket.org/pypy/pypy/changeset/b87b3bf9ecaf/

Log:    first is utf8, not unicode

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
@@ -1170,7 +1170,7 @@
     first = u[0]
     it = rutf8.Utf8StringIterator(u)
     code = it.next()
-    if not (unicodedb.isxidstart(code) or first == u'_'):
+    if not (unicodedb.isxidstart(code) or first == '_'):
         return False
 
     for ch in it:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to