mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +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
8ad5b07ccb
9 changed files with 17 additions and 15 deletions
|
@ -3761,7 +3761,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