Skip to content

Commit 03ab852

Browse files
committed
Add comment
1 parent e13e90c commit 03ab852

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Parser/action_helpers.c

+2
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,8 @@ _PyPegen_setup_full_format_spec(Parser *p, Token *colon, asdl_expr_seq *spec, in
998998
return NULL;
999999
}
10001000

1001+
// This is needed to keep compatibility with 3.11, when an empty format spec is parsed
1002+
// as an *empty* JoinedStr node.
10011003
if (asdl_seq_LEN(spec) == 1) {
10021004
expr_ty e = asdl_seq_GET(spec, 0);
10031005
if (e->kind == Constant_kind

0 commit comments

Comments
 (0)