use Py_CHARMASK; and don't check for neg. float to the float power here

This commit is contained in:
Guido van Rossum 1995-02-10 17:00:37 +00:00
parent 2497eada60
commit 9fa2c11613
3 changed files with 8 additions and 12 deletions

View file

@ -377,7 +377,7 @@ long_escan(str, pend, base)
err_setstr(ValueError, "invalid base for long literal");
return NULL;
}
while (*str != '\0' && isspace(*str))
while (*str != '\0' && isspace(Py_CHARMASK(*str)))
str++;
if (*str == '+')
++str;
@ -385,7 +385,7 @@ long_escan(str, pend, base)
++str;
sign = -1;
}
while (*str != '\0' && isspace(*str))
while (*str != '\0' && isspace(Py_CHARMASK(*str)))
str++;
if (base == 0) {
if (str[0] != '0')