bpo-37752: Delete redundant Py_CHARMASK in normalizestring() (GH-15095)

This commit is contained in:
Jordon Xu 2019-09-11 00:04:08 +08:00 committed by Steve Dower
parent 801f925998
commit 2ec7010206
7 changed files with 15 additions and 15 deletions

View file

@ -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';