summaryrefslogtreecommitdiff
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-18 10:59:41 -0700
committerBenjamin Peterson <benjamin@python.org>2013-03-18 10:59:41 -0700
commit8703704e3ab4dc0e40996d1796e75fea5df1da32 (patch)
treeb886bff18117511c26488d999befbd83edd46552 /Python
parent22dcaec48323edf7266f42d0c77faab43e1b607f (diff)
downloadcpython-8703704e3ab4dc0e40996d1796e75fea5df1da32.tar.gz
move declaration to top of block
Diffstat (limited to 'Python')
-rw-r--r--Python/ast.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Python/ast.c b/Python/ast.c
index 2080e4991a..4d517b7b54 100644
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1115,6 +1115,7 @@ ast_for_arg(struct compiling *c, const node *n)
identifier name;
expr_ty annotation = NULL;
node *ch;
+ arg_ty tmp;
assert(TYPE(n) == tfpdef || TYPE(n) == vfpdef);
ch = CHILD(n, 0);
@@ -1130,7 +1131,7 @@ ast_for_arg(struct compiling *c, const node *n)
return NULL;
}
- arg_ty tmp = arg(name, annotation, c->c_arena);
+ tmp = arg(name, annotation, c->c_arena);
if (!tmp)
return NULL;