mirror of
https://github.com/python/cpython.git
synced 2025-11-03 11:23:31 +00:00
use only j for imaginary constants
This commit is contained in:
parent
efa3143abd
commit
faa436c70b
1 changed files with 2 additions and 2 deletions
|
|
@ -573,7 +573,7 @@ tok_get(tok, p_start, p_end)
|
||||||
if (c == '.')
|
if (c == '.')
|
||||||
goto fraction;
|
goto fraction;
|
||||||
#ifndef WITHOUT_COMPLEX
|
#ifndef WITHOUT_COMPLEX
|
||||||
if (c == 'i' || c == 'I' || c == 'j' || c == 'J')
|
if (c == 'j' || c == 'J')
|
||||||
goto imaginary;
|
goto imaginary;
|
||||||
#endif
|
#endif
|
||||||
if (c == 'x' || c == 'X') {
|
if (c == 'x' || c == 'X') {
|
||||||
|
|
@ -622,7 +622,7 @@ tok_get(tok, p_start, p_end)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#ifndef WITHOUT_COMPLEX
|
#ifndef WITHOUT_COMPLEX
|
||||||
if (c == 'i' || c == 'I' || c == 'j' || c == 'J')
|
if (c == 'j' || c == 'J')
|
||||||
/* Imaginary part */
|
/* Imaginary part */
|
||||||
imaginary:
|
imaginary:
|
||||||
c = tok_nextc(tok);
|
c = tok_nextc(tok);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue