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 /Modules/binascii.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 '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 ad5e1b1a1c..340ec9c426 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)) |
