mirror of
https://github.com/python/cpython.git
synced 2025-09-12 03:37:09 +00:00
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).
This commit is contained in:
commit
c73c561181
11 changed files with 19 additions and 17 deletions
|
@ -3747,7 +3747,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)) {
|
||||
while (!*bytesmode || !rawmode) {
|
||||
if (quote == 'b' || quote == 'B') {
|
||||
quote = *++s;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue