Skip to content

Commit

Permalink
Do not raise an exception when EOF is encountered immediately after a…
Browse files Browse the repository at this point in the history
… multi-line indicator
  • Loading branch information
jayaddison committed Feb 4, 2021
1 parent 26ebdc5 commit b2c6670
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/blib2to3/pgen2/tokenize.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,6 @@ def generate_tokens(
async_def_indent = 0

else: # continued statement
if not line:
raise TokenError("EOF in multi-line statement", (lnum, 0))
continued = 0

while pos < max:
Expand Down

0 comments on commit b2c6670

Please sign in to comment.