From c1ecc146f84682276f2490838f5c1b39aeb88197 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Thu, 7 Sep 2023 00:28:15 +0530 Subject: [PATCH] fix newline type --- src/blib2to3/pgen2/tokenize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blib2to3/pgen2/tokenize.py b/src/blib2to3/pgen2/tokenize.py index fdb5f4e74cf..95dd6aa63b6 100644 --- a/src/blib2to3/pgen2/tokenize.py +++ b/src/blib2to3/pgen2/tokenize.py @@ -641,7 +641,7 @@ def generate_tokens( yield (NUMBER, token, spos, epos, line) elif initial in "\r\n": newline = NEWLINE - if parenlev > 0: + if parenlev > 0 or inside_fstring_braces: newline = NL elif async_def: async_def_nl = True