]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Don't print the line number for syntax errors in string parsing.
authorGuido van Rossum <guido@python.org>
Mon, 3 Jun 1991 11:02:09 +0000 (11:02 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 3 Jun 1991 11:02:09 +0000 (11:02 +0000)
Parser/parsetok.c

index 5aeea290300b247c7f8f949335bc4c4bbf3affa6..a0bac20ec6b3042c03e27cdaaf780a262b274fb8 100644 (file)
@@ -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;
 }