mirror of https://github.com/python/cpython
Make ast.c compile on Windows again.
This commit is contained in:
parent
d56976c9a2
commit
50d5a1c373
|
@ -51,9 +51,10 @@ static identifier
|
|||
new_identifier(const char* n, PyArena *arena)
|
||||
{
|
||||
PyObject* id = PyUnicode_DecodeUTF8(n, strlen(n), NULL);
|
||||
Py_UNICODE *u;
|
||||
if (!id)
|
||||
return NULL;
|
||||
Py_UNICODE *u = PyUnicode_AS_UNICODE(id);
|
||||
u = PyUnicode_AS_UNICODE(id);
|
||||
/* Check whether there are non-ASCII characters in the
|
||||
identifier; if so, normalize to NFKC. */
|
||||
for (; *u; u++) {
|
||||
|
|
Loading…
Reference in New Issue