mirror of
https://github.com/python/cpython.git
synced 2025-08-02 16:13:13 +00:00
The patches are adding deprecation warnings for back ticks and <>
This commit is contained in:
parent
2336111aef
commit
729ab15370
2 changed files with 14 additions and 1 deletions
|
@ -1336,6 +1336,10 @@ ast_for_atom(struct compiling *c, const node *n)
|
|||
return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena);
|
||||
}
|
||||
case BACKQUOTE: { /* repr */
|
||||
if (Py_Py3kWarningFlag &&
|
||||
PyErr_Warn(PyExc_DeprecationWarning,
|
||||
"backquote not supported in 3.x") < 0)
|
||||
return NULL;
|
||||
expr_ty expression = ast_for_testlist(c, CHILD(n, 1));
|
||||
if (!expression)
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue