Mercurial > cpython-lru_cache-weakref
diff Modules/socketmodule.c @ 82110:38830281d43b 3.2
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).
| author | Antoine Pitrou <solipsis@pitrou.net> |
|---|---|
| date | Sat, 09 Feb 2013 23:11:27 +0100 |
| parents | 974ace29ee2d |
| children | c08bcf5302ec |
line wrap: on
line diff
--- a/Modules/socketmodule.c Sat Feb 09 22:37:22 2013 +0200 +++ b/Modules/socketmodule.c Sat Feb 09 23:11:27 2013 +0100 @@ -519,7 +519,7 @@ /* If non-empty msg, trim CRLF */ char *lastc = &outbuf[ strlen(outbuf)-1 ]; while (lastc > outbuf && - isspace(Py_CHARMASK(*lastc))) { + Py_ISSPACE(Py_CHARMASK(*lastc))) { /* Trim trailing whitespace (CRLF) */ *lastc-- = '\0'; }
