mirror of
https://github.com/python/cpython.git
synced 2025-11-25 21:11:09 +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
|
|
@ -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') {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue