diff options
author | Benjamin Peterson <benjamin@python.org> | 2011-05-30 16:12:38 (GMT) |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2011-05-30 16:12:38 (GMT) |
commit | 758888d437c4c2d398ec322ff1596e1620f5f0dd (patch) | |
tree | 0d8f30a733d4a4afd42b3700d1433ef00f2fc5f3 /Parser/parsetok.c | |
parent | c8507bfe9cd581de1b324af92bf255a86a0437b0 (diff) | |
download | cpython-758888d437c4c2d398ec322ff1596e1620f5f0dd.zip cpython-758888d437c4c2d398ec322ff1596e1620f5f0dd.tar.gz cpython-758888d437c4c2d398ec322ff1596e1620f5f0dd.tar.bz2 |
don't restrict unexpected EOF errors to the first line (closes #12216)
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r-- | Parser/parsetok.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c index eef650a..431a87c 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -232,7 +232,7 @@ parsetok(struct tok_state *tok, grammar *g, int start, perrdetail *err_ret, PyParser_Delete(ps); if (n == NULL) { - if (tok->lineno <= 1 && tok->done == E_EOF) + if (tok->done == E_EOF) err_ret->error = E_EOF; err_ret->lineno = tok->lineno; if (tok->buf != NULL) { |