mirror of
https://github.com/python/cpython.git
synced 2025-09-11 11:17:16 +00:00
Make Py3k warnings consistent w.r.t. punctuation; also respect the
EOL 80 limit and supply more alternatives in warning messages.
This commit is contained in:
parent
80055f6295
commit
d5b635f196
16 changed files with 67 additions and 54 deletions
|
@ -1363,7 +1363,7 @@ ast_for_atom(struct compiling *c, const node *n)
|
|||
expr_ty expression;
|
||||
if (Py_Py3kWarningFlag) {
|
||||
if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
|
||||
"backquote not supported in 3.x",
|
||||
"backquote not supported in 3.x; use repr()",
|
||||
c->c_filename, LINENO(n),
|
||||
NULL, NULL)) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue