Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit c3f0014

Browse filesBrowse files
authored
bpo-40491: Fix typo in syntax error for numeric literals (GH-19893)
1 parent 41a6458 commit c3f0014
Copy full SHA for c3f0014

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎Parser/pegen/pegen.c

Copy file name to clipboardExpand all lines: Parser/pegen/pegen.c
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,7 @@ _PyPegen_number_token(Parser *p)
907907

908908
if (p->feature_version < 6 && strchr(num_raw, '_') != NULL) {
909909
p->error_indicator = 1;
910-
return RAISE_SYNTAX_ERROR("Underscores in numeric literals are only supported"
910+
return RAISE_SYNTAX_ERROR("Underscores in numeric literals are only supported "
911911
"in Python 3.6 and greater");
912912
}
913913

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.