mirror of
https://github.com/python/cpython.git
synced 2025-07-29 22:24:49 +00:00
bpo-40491: Fix typo in syntax error for numeric literals (GH-19893)
This commit is contained in:
parent
41a64587a0
commit
c3f001461d
1 changed files with 1 additions and 1 deletions
|
@ -907,7 +907,7 @@ _PyPegen_number_token(Parser *p)
|
||||||
|
|
||||||
if (p->feature_version < 6 && strchr(num_raw, '_') != NULL) {
|
if (p->feature_version < 6 && strchr(num_raw, '_') != NULL) {
|
||||||
p->error_indicator = 1;
|
p->error_indicator = 1;
|
||||||
return RAISE_SYNTAX_ERROR("Underscores in numeric literals are only supported"
|
return RAISE_SYNTAX_ERROR("Underscores in numeric literals are only supported "
|
||||||
"in Python 3.6 and greater");
|
"in Python 3.6 and greater");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue