mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
invert condition (head bang)
This commit is contained in:
parent
8d5a62df10
commit
de5827dcd2
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ new_identifier(const char* n, PyArena *arena)
|
||||||
assert(PyUnicode_IS_READY(id));
|
assert(PyUnicode_IS_READY(id));
|
||||||
/* Check whether there are non-ASCII characters in the
|
/* Check whether there are non-ASCII characters in the
|
||||||
identifier; if so, normalize to NFKC. */
|
identifier; if so, normalize to NFKC. */
|
||||||
if (PyUnicode_IS_ASCII(id)) {
|
if (!PyUnicode_IS_ASCII(id)) {
|
||||||
PyObject *m = PyImport_ImportModuleNoBlock("unicodedata");
|
PyObject *m = PyImport_ImportModuleNoBlock("unicodedata");
|
||||||
PyObject *id2;
|
PyObject *id2;
|
||||||
if (!m) {
|
if (!m) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue