mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Allow leading underscore in keywords.
This commit is contained in:
parent
6fa4466cec
commit
6dacd90a83
1 changed files with 1 additions and 1 deletions
|
@ -216,7 +216,7 @@ translabel(g, lb)
|
|||
}
|
||||
|
||||
if (lb->lb_type == STRING) {
|
||||
if (isalpha(lb->lb_str[1])) {
|
||||
if (isalpha(lb->lb_str[1]) || lb->lb_str[1] == '_') {
|
||||
char *p;
|
||||
if (debugging)
|
||||
printf("Label %s is a keyword\n", lb->lb_str);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue