[Python-checkins] cpython: move declaration to top of block

benjamin.peterson python-checkins at python.org
Mon Mar 18 19:00:05 CET 2013


http://hg.python.org/cpython/rev/d801be922dc2
changeset: 82734:d801be922dc2
user: Benjamin Peterson <benjamin at python.org>
date: Mon Mar 18 10:59:41 2013 -0700
summary:
 move declaration to top of block
files:
 Python/ast.c | 3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/Python/ast.c b/Python/ast.c
--- a/Python/ast.c
+++ b/Python/ast.c
@@ -1115,6 +1115,7 @@
 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 @@
 return NULL;
 }
 
- arg_ty tmp = arg(name, annotation, c->c_arena);
+ tmp = arg(name, annotation, c->c_arena);
 if (!tmp)
 return NULL;
 
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /