summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2012-01-16 09:49:20 -0500
committerBenjamin Peterson <benjamin@python.org>2012-01-16 09:49:20 -0500
commite2ad70658b5eb85b2efa295038ab26a9442c290a (patch)
tree2be0d6031612c4cfad4dbc4003ff8b400d8c75df /Python
parent5d471a4227fc21ec6f045c051dd3132f53003201 (diff)
downloadcpython-e2ad70658b5eb85b2efa295038ab26a9442c290a.tar.gz
use helpful PyUnicode_IS_ASCII macro
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index df2c63da1b..9776a6a151 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -537,7 +537,7 @@ new_identifier(const char* n, PyArena *arena)
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)