Skip to content

Commit

Permalink
fix newline type
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed Sep 6, 2023
1 parent 88af1c1 commit c1ecc14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/blib2to3/pgen2/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1ecc14

Please sign in to comment.