diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 23:16:51 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 23:16:51 +0100 |
commit | 8ad5b07ccb81f51551ac087a5409ebc85c0d16a7 (patch) | |
tree | 0496567aa3d6d37dc456da69e9b32f7da561f102 /Python/formatter_unicode.c | |
parent | 151699a202e6213c1f02b37605a033975ae52307 (diff) | |
parent | c73c561181c3ea3bf15c908a827878e1450a5ac6 (diff) | |
download | cpython-git-8ad5b07ccb81f51551ac087a5409ebc85c0d16a7.tar.gz |
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).
Diffstat (limited to 'Python/formatter_unicode.c')
-rw-r--r-- | Python/formatter_unicode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/formatter_unicode.c b/Python/formatter_unicode.c index 0ce9862a20..79fa469697 100644 --- a/Python/formatter_unicode.c +++ b/Python/formatter_unicode.c @@ -401,7 +401,7 @@ parse_number(PyObject *s, Py_ssize_t pos, Py_ssize_t end, { Py_ssize_t remainder; - while (pos<end && isdigit(PyUnicode_READ_CHAR(s, pos))) + while (pos<end && Py_ISDIGIT(PyUnicode_READ_CHAR(s, pos))) ++pos; remainder = pos; |