mirror of
https://github.com/python/cpython.git
synced 2025-07-27 13:14:41 +00:00
And yet another fix for the patch. Paul Moore has send me a note that I've missed a declaration. The additional code has moved the declaration in the middle of the block.
This commit is contained in:
parent
e36fe53d68
commit
6d8fb1a444
1 changed files with 9 additions and 8 deletions
17
Python/ast.c
17
Python/ast.c
|
@ -1336,15 +1336,16 @@ ast_for_atom(struct compiling *c, const node *n)
|
||||||
return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena);
|
return Dict(keys, values, LINENO(n), n->n_col_offset, c->c_arena);
|
||||||
}
|
}
|
||||||
case BACKQUOTE: { /* repr */
|
case BACKQUOTE: { /* repr */
|
||||||
|
expr_ty expression;
|
||||||
if (Py_Py3kWarningFlag) {
|
if (Py_Py3kWarningFlag) {
|
||||||
if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
|
if (PyErr_WarnExplicit(PyExc_DeprecationWarning,
|
||||||
"backquote not supported in 3.x",
|
"backquote not supported in 3.x",
|
||||||
"<unknown>", LINENO(n),
|
"<unknown>", LINENO(n),
|
||||||
NULL, NULL)) {
|
NULL, NULL)) {
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
expr_ty expression = ast_for_testlist(c, CHILD(n, 1));
|
expression = ast_for_testlist(c, CHILD(n, 1));
|
||||||
if (!expression)
|
if (!expression)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue