diff Python/ast.c @ 82111:c08bcf5302ec 3.3

Issue #17173: Remove uses of locale-dependent C functions (isalpha() etc.) in the interpreter. I've left a couple of them in: zlib (third-party lib), getaddrinfo.c (doesn't include Python.h, and probably obsolete), _sre.c (legitimate use for the re.LOCALE flag), mpdecimal (needs to build without Python.h).
author Antoine Pitrou <solipsis@pitrou.net>
date Sat, 09 Feb 2013 23:14:42 +0100
parents ffb2fa900cb7 38830281d43b
children d5b731446a91 10e59553a8de
line wrap: on
line diff
--- a/Python/ast.c	Sat Feb 09 22:38:12 2013 +0200
+++ b/Python/ast.c	Sat Feb 09 23:14:42 2013 +0100
@@ -3747,7 +3747,7 @@
     int quote = Py_CHARMASK(*s);
     int rawmode = 0;
     int need_encoding;
-    if (isalpha(quote)) {
+    if (Py_ISALPHA(quote)) {
         while (!*bytesmode || !rawmode) {
             if (quote == 'b' || quote == 'B') {
                 quote = *++s;