Mercurial > cpython-lru_cache-weakref
diff Python/ast.c @ 47516:f3df51b60dc2 legacy-trunk
change Py3k backquote warning to a SyntaxWarning and add a test
| author | Benjamin Peterson <benjamin@python.org> |
|---|---|
| date | Sun, 08 Jun 2008 02:05:33 +0000 |
| parents | 4fe192d48960 |
| children | 31aee67019a2 |
line wrap: on
line diff
--- a/Python/ast.c Sat Jun 07 20:44:48 2008 +0000 +++ b/Python/ast.c Sun Jun 08 02:05:33 2008 +0000 @@ -1364,7 +1364,7 @@ case BACKQUOTE: { /* repr */ expr_ty expression; if (Py_Py3kWarningFlag) { - if (PyErr_WarnExplicit(PyExc_DeprecationWarning, + if (PyErr_WarnExplicit(PyExc_SyntaxWarning, "backquote not supported in 3.x; use repr()", c->c_filename, LINENO(n), NULL, NULL)) {
