From 41d5b94af44e34ac05d4cd57460ed104ccf96628 Mon Sep 17 00:00:00 2001 From: Lysandros Nikolaou Date: Sun, 12 Apr 2020 21:21:00 +0300 Subject: bpo-40246: Report a better error message for invalid string prefixes (GH-19476) --- 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 95571a8c75..eb9159f1b5 100644 --- a/Python/pythonrun.c +++ b/Python/pythonrun.c @@ -1574,6 +1574,9 @@ err_input(perrdetail *err) case E_BADSINGLE: msg = "multiple statements found while compiling a single statement"; break; + case E_BADPREFIX: + msg = "invalid string prefix"; + break; default: fprintf(stderr, "error=%d\n", err->error); msg = "unknown parsing error"; -- cgit v1.2.1