summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorJordon Xu <46997731+qigangxu@users.noreply.github.com>2019-09-10 16:04:08 (GMT)
committerSteve Dower <steve.dower@python.org>2019-09-10 16:04:08 (GMT)
commit2ec70102066fe5534f1a62e8f496d2005e1697db (patch)
tree1d406e9e646da303521b874bf46acca47c203b67 /Objects
parent801f925998cc393260f36f5ac77369fef2373ad1 (diff)
downloadcpython-2ec70102066fe5534f1a62e8f496d2005e1697db.zip
cpython-2ec70102066fe5534f1a62e8f496d2005e1697db.tar.gz
cpython-2ec70102066fe5534f1a62e8f496d2005e1697db.tar.bz2
bpo-37752: Delete redundant Py_CHARMASK in normalizestring() (GH-15095)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/longobject.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/longobject.c b/Objects/longobject.c
index 4cf2b07..ed25e0b 100644
--- a/Objects/longobject.c
+++ b/Objects/longobject.c
@@ -2300,7 +2300,7 @@ PyLong_FromString(const char *str, char **pend, int base)
"int() arg 2 must be >= 2 and <= 36");
return NULL;
}
- while (*str != '\0' && Py_ISSPACE(Py_CHARMASK(*str))) {
+ while (*str != '\0' && Py_ISSPACE(*str)) {
str++;
}
if (*str == '+') {
@@ -2609,7 +2609,7 @@ digit beyond the first.
if (sign < 0) {
Py_SIZE(z) = -(Py_SIZE(z));
}
- while (*str && Py_ISSPACE(Py_CHARMASK(*str))) {
+ while (*str && Py_ISSPACE(*str)) {
str++;
}
if (*str != '\0') {