Applied patch #1754273 and #1754271 from Thomas Glee
The patches are adding deprecation warnings for back ticks and <>
diff --git a/Python/ast.c b/Python/ast.c
index 525b5a6..5555cf7 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1336,6 +1336,10 @@
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;