diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 22:14:42 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2013-02-09 22:14:42 (GMT) |
commit | c73c561181c3ea3bf15c908a827878e1450a5ac6 (patch) | |
tree | f924a60b5c1b5aa172cf3eba2c39605789a7017c /Modules/binascii.c | |
parent | 859cd4723f07e2b1da7387f5be0f2ce0a195974d (diff) | |
parent | 4de7457009d3dac9c93cc5b471d20a8d5e92ff33 (diff) | |
download | cpython-c73c561181c3ea3bf15c908a827878e1450a5ac6.zip cpython-c73c561181c3ea3bf15c908a827878e1450a5ac6.tar.gz cpython-c73c561181c3ea3bf15c908a827878e1450a5ac6.tar.bz2 |
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 'Modules/binascii.c')
-rw-r--r-- | Modules/binascii.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/binascii.c b/Modules/binascii.c index ad5e1b1..340ec9c 100644 --- a/Modules/binascii.c +++ b/Modules/binascii.c @@ -1135,7 +1135,7 @@ This function is also available as \"hexlify()\"."); static int to_int(int c) { - if (isdigit(c)) + if (Py_ISDIGIT(c)) return c - '0'; else { if (Py_ISUPPER(c)) |