From b2c6670c40413cfa0db3e43f402dff4d73a4080b Mon Sep 17 00:00:00 2001 From: James Addison Date: Thu, 4 Feb 2021 00:37:24 +0000 Subject: [PATCH] Do not raise an exception when EOF is encountered immediately after a multi-line indicator --- src/blib2to3/pgen2/tokenize.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/blib2to3/pgen2/tokenize.py b/src/blib2to3/pgen2/tokenize.py index bad79b2dc2c..db28dda37df 100644 --- a/src/blib2to3/pgen2/tokenize.py +++ b/src/blib2to3/pgen2/tokenize.py @@ -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: