commit | 2fe3ef8750e7f06ebf250bb2264f71d5f96e2f9b | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Sun Jun 08 02:05:33 2008 +0000 |
committer | Benjamin Peterson <benjamin@python.org> | Sun Jun 08 02:05:33 2008 +0000 |
tree | 98de05d124b4a128c7e43677f2b71019819a63d0 | |
parent | 1f1174edf363609d501f2677f43bfbdbabb081e5 [diff] |
change Py3k backquote warning to a SyntaxWarning and add a test
diff --git a/Python/ast.c b/Python/ast.c index 0bc7595..863906f 100644 --- a/Python/ast.c +++ b/Python/ast.c
@@ -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)) {