diff options
author | Benjamin Peterson <benjamin@python.org> | 2008-06-08 02:05:33 +0000 |
---|---|---|
committer | Benjamin Peterson <benjamin@python.org> | 2008-06-08 02:05:33 +0000 |
commit | 2fe3ef8750e7f06ebf250bb2264f71d5f96e2f9b (patch) | |
tree | 98de05d124b4a128c7e43677f2b71019819a63d0 /Python/ast.c | |
parent | 1f1174edf363609d501f2677f43bfbdbabb081e5 (diff) | |
download | cpython-git-2fe3ef8750e7f06ebf250bb2264f71d5f96e2f9b.tar.gz |
change Py3k backquote warning to a SyntaxWarning and add a test
Diffstat (limited to 'Python/ast.c')
-rw-r--r-- | Python/ast.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c index 0bc75956e8..863906f65a 100644 --- a/Python/ast.c +++ b/Python/ast.c @@ -1364,7 +1364,7 @@ ast_for_atom(struct compiling *c, const node *n) 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)) { |