From 326f58276308034bf64d7c4fdafd8ba4fa20bbdd Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 3 Jun 1991 11:02:09 +0000 Subject: [PATCH] Don't print the line number for syntax errors in string parsing. --- Parser/parsetok.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Parser/parsetok.c b/Parser/parsetok.c index 5aeea290300..a0bac20ec6b 100644 --- a/Parser/parsetok.c +++ b/Parser/parsetok.c @@ -54,10 +54,13 @@ parsestring(s, g, start, n_ret) return E_NOMEM; } ret = parsetok(tok, g, start, n_ret); +/* +XXX Need a more sophisticated way to report the line number. if (ret == E_TOKEN || ret == E_SYNTAX) { fprintf(stderr, "String parsing error at line %d\n", tok->lineno); } +*/ tok_free(tok); return ret; }