summaryrefslogtreecommitdiffstats
path: root/Parser/parsetok.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-06-03 11:02:09 (GMT)
committerGuido van Rossum <guido@python.org>1991-06-03 11:02:09 (GMT)
commit326f58276308034bf64d7c4fdafd8ba4fa20bbdd (patch)
treec25606f1f25228d4dbfadd0b7ab044de3752f899 /Parser/parsetok.c
parent301f1a6f79ae7a489371ee79f70e12d267609d84 (diff)
downloadcpython-326f58276308034bf64d7c4fdafd8ba4fa20bbdd.zip
cpython-326f58276308034bf64d7c4fdafd8ba4fa20bbdd.tar.gz
cpython-326f58276308034bf64d7c4fdafd8ba4fa20bbdd.tar.bz2
Don't print the line number for syntax errors in string parsing.
Diffstat (limited to 'Parser/parsetok.c')
-rw-r--r--Parser/parsetok.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Parser/parsetok.c b/Parser/parsetok.c
index 5aeea29..a0bac20 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;
}