mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-37752: Delete redundant Py_CHARMASK in normalizestring() (GH-15095)
This commit is contained in:
parent
801f925998
commit
2ec7010206
7 changed files with 15 additions and 15 deletions
|
@ -1298,7 +1298,7 @@ prepare_s(PyStructObject *self)
|
|||
len = 0;
|
||||
ncodes = 0;
|
||||
while ((c = *s++) != '\0') {
|
||||
if (Py_ISSPACE(Py_CHARMASK(c)))
|
||||
if (Py_ISSPACE(c))
|
||||
continue;
|
||||
if ('0' <= c && c <= '9') {
|
||||
num = c - '0';
|
||||
|
@ -1363,7 +1363,7 @@ prepare_s(PyStructObject *self)
|
|||
s = fmt;
|
||||
size = 0;
|
||||
while ((c = *s++) != '\0') {
|
||||
if (Py_ISSPACE(Py_CHARMASK(c)))
|
||||
if (Py_ISSPACE(c))
|
||||
continue;
|
||||
if ('0' <= c && c <= '9') {
|
||||
num = c - '0';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue