mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Don't print the line number for syntax errors in string parsing.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user