mirror of
https://github.com/python/cpython.git
synced 2025-07-23 03:05:38 +00:00
only use 'j' for imaginary constants
This commit is contained in:
parent
c96ef6ab9e
commit
15ad9a6e52
1 changed files with 1 additions and 1 deletions
|
@ -572,7 +572,7 @@ parsenumber(s)
|
||||||
errno = 0;
|
errno = 0;
|
||||||
end = s + strlen(s) - 1;
|
end = s + strlen(s) - 1;
|
||||||
#ifndef WITHOUT_COMPLEX
|
#ifndef WITHOUT_COMPLEX
|
||||||
imflag = *end == 'i' || *end == 'I' || *end == 'j' || *end == 'J';
|
imflag = *end == 'j' || *end == 'J';
|
||||||
#endif
|
#endif
|
||||||
if (*end == 'l' || *end == 'L')
|
if (*end == 'l' || *end == 'L')
|
||||||
return long_scan(s, 0);
|
return long_scan(s, 0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue