Skip to content

Commit

Permalink
add \f to indent chars
Browse files Browse the repository at this point in the history
  • Loading branch information
tusharsadhwani committed May 4, 2024
1 parent 339fd0d commit 216f836
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/blib2to3/pgen2/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -609,9 +609,9 @@ def generate_tokens(
line = ""
lnum += 1

# skip lines that are just a slash, to avoid storing that line's
# indent information.
if not contstr and line.rstrip("\n").strip(" \t") == "\\":
# skip lines that are just indent characters ending with a slash
# to avoid storing that line's indent information.
if not contstr and line.rstrip("\n").strip(" \t\f") == "\\":
continue

pos, max = 0, len(line)
Expand Down

0 comments on commit 216f836

Please sign in to comment.