Commit 020db070 authored by Guido van Rossum's avatar Guido van Rossum

Don't print the line number for syntax errors in string parsing.

parent 57032961
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment