mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +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;
|
||||
end = s + strlen(s) - 1;
|
||||
#ifndef WITHOUT_COMPLEX
|
||||
imflag = *end == 'i' || *end == 'I' || *end == 'j' || *end == 'J';
|
||||
imflag = *end == 'j' || *end == 'J';
|
||||
#endif
|
||||
if (*end == 'l' || *end == 'L')
|
||||
return long_scan(s, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue