[Python-checkins] cpython: invert condition (head bang)

benjamin.peterson python-checkins at python.org
Mon Jan 16 15:56:00 CET 2012


http://hg.python.org/cpython/rev/ca5c5142da58
changeset:   74447:ca5c5142da58
user:        Benjamin Peterson <benjamin at python.org>
date:        Mon Jan 16 09:55:53 2012 -0500
summary:
  invert condition (head bang)

files:
  Python/ast.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Python/ast.c b/Python/ast.c
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -537,7 +537,7 @@
     assert(PyUnicode_IS_READY(id));
     /* Check whether there are non-ASCII characters in the
        identifier; if so, normalize to NFKC. */
-    if (PyUnicode_IS_ASCII(id)) {
+    if (!PyUnicode_IS_ASCII(id)) {
         PyObject *m = PyImport_ImportModuleNoBlock("unicodedata");
         PyObject *id2;
         if (!m) {

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list