Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eda913 commit 89f8b80Copy full SHA for 89f8b80
1 file changed
Python/ast.c
@@ -537,7 +537,7 @@ new_identifier(const char* n, PyArena *arena)
537
assert(PyUnicode_IS_READY(id));
538
/* Check whether there are non-ASCII characters in the
539
identifier; if so, normalize to NFKC. */
540
- if (PyUnicode_MAX_CHAR_VALUE((PyUnicodeObject *)id) >= 128) {
+ if (PyUnicode_IS_ASCII(id)) {
541
PyObject *m = PyImport_ImportModuleNoBlock("unicodedata");
542
PyObject *id2;
543
if (!m)
0 commit comments