summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2013-03-18 17:59:41 (GMT)
committerBenjamin Peterson <benjamin@python.org>2013-03-18 17:59:41 (GMT)
commitaad1d87339d1a310a58d71b812834ac9216a7e67 (patch)
treee3ec671d6dae091d5e7bc9bba6939aea2304043f /Python
parent57048b6f9f2354ebfdb7f59f7b179363b4b40aae (diff)
downloadcpython-aad1d87339d1a310a58d71b812834ac9216a7e67.zip
cpython-aad1d87339d1a310a58d71b812834ac9216a7e67.tar.gz
cpython-aad1d87339d1a310a58d71b812834ac9216a7e67.tar.bz2
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 2080e49..4d517b7 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;