mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
move declaration to top of block
This commit is contained in:
parent
57048b6f9f
commit
aad1d87339
1 changed files with 2 additions and 1 deletions
|
@ -1115,6 +1115,7 @@ ast_for_arg(struct compiling *c, const node *n)
|
||||||
identifier name;
|
identifier name;
|
||||||
expr_ty annotation = NULL;
|
expr_ty annotation = NULL;
|
||||||
node *ch;
|
node *ch;
|
||||||
|
arg_ty tmp;
|
||||||
|
|
||||||
assert(TYPE(n) == tfpdef || TYPE(n) == vfpdef);
|
assert(TYPE(n) == tfpdef || TYPE(n) == vfpdef);
|
||||||
ch = CHILD(n, 0);
|
ch = CHILD(n, 0);
|
||||||
|
@ -1130,7 +1131,7 @@ ast_for_arg(struct compiling *c, const node *n)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
arg_ty tmp = arg(name, annotation, c->c_arena);
|
tmp = arg(name, annotation, c->c_arena);
|
||||||
if (!tmp)
|
if (!tmp)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue