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

Lines changed: 2 additions & 0 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy