Skip to content

Commit

Permalink
Simplify regex
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 committed Oct 29, 2024
1 parent faf7ade commit d606977
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Lib/test/test_tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -1832,7 +1832,7 @@ def contains_ambiguous_backslash(source):
the tokenizer does not produce any tokens for the line containing
the backslash and so there is no way to know its indent.
"""
pattern = re.compile(br'\n\s*\\\s*\r?\n')
pattern = re.compile(br'\n\s*\\\r?\n')
return pattern.search(source) is not None


Expand Down

0 comments on commit d606977

Please sign in to comment.