Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 15ad9a6

Browse files
committed
only use 'j' for imaginary constants
1 parent c96ef6a commit 15ad9a6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -572,7 +572,7 @@ parsenumber(s)
572572
errno = 0;
573573
end = s + strlen(s) - 1;
574574
#ifndef WITHOUT_COMPLEX
575-
imflag = *end == 'i' || *end == 'I' || *end == 'j' || *end == 'J';
575+
imflag = *end == 'j' || *end == 'J';
576576
#endif
577577
if (*end == 'l' || *end == 'L')
578578
return long_scan(s, 0);

0 commit comments

Comments
 (0)