From fa21bf015d4e9cb0c010fde28db0c344174634d1 Mon Sep 17 00:00:00 2001 From: Meador Inge Date: Thu, 19 Jan 2012 01:08:41 -0600 Subject: Issue #12705: Raise SyntaxError when compiling multiple statements as single interactive statement --- Python/pythonrun.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'Python/pythonrun.c') diff --git a/Python/pythonrun.c b/Python/pythonrun.c index bff04de599..44b817f546 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -2129,6 +2129,9 @@ err_input(perrdetail *err) case E_IDENTIFIER: msg = "invalid character in identifier"; break; + case E_BADSINGLE: + msg = "multiple statements found while compiling a single statement"; + break; default: fprintf(stderr, "error=%d\n", err->error); msg = "unknown parsing error"; -- cgit v1.2.1