From 4de7457009d3dac9c93cc5b471d20a8d5e92ff33 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sat, 9 Feb 2013 23:11:27 +0100 Subject: 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). --- Python/ast.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Python/ast.c') diff --git a/Python/ast.c b/Python/ast.c index d2f063bb5b..e395c5aa78 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -3305,7 +3305,7 @@ parsestr(struct compiling *c, const node *n, int *bytesmode) int quote = Py_CHARMASK(*s); int rawmode = 0; int need_encoding; - if (isalpha(quote)) { + if (Py_ISALPHA(quote)) { if (quote == 'b' || quote == 'B') { quote = *++s; *bytesmode = 1; -- cgit v1.2.1