[Python-checkins] cpython: use helpful PyUnicode_IS_ASCII macro
benjamin.peterson
python-checkins at python.org
Mon Jan 16 15:49:29 CET 2012
http://hg.python.org/cpython/rev/fe40a87484cc
changeset: 74444:fe40a87484cc
user: Benjamin Peterson <benjamin at python.org>
date: Mon Jan 16 09:49:20 2012 -0500
summary:
use helpful PyUnicode_IS_ASCII macro
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_MAX_CHAR_VALUE((PyUnicodeObject *)id) >= 128) {
+ 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