@@ -512,14 +512,14 @@ static asdl_seq *
512512seq_for_testlist (struct compiling * c , const node * n )
513513{
514514 /* testlist: test (',' test)* [','] */
515+ asdl_seq * seq ;
516+ expr_ty expression ;
517+ int i ;
515518 assert (TYPE (n ) == testlist
516519 || TYPE (n ) == listmaker
517520 || TYPE (n ) == testlist_gexp
518521 || TYPE (n ) == testlist_safe
519522 );
520- asdl_seq * seq ;
521- expr_ty expression ;
522- int i ;
523523
524524 seq = asdl_seq_new ((NCH (n ) + 1 ) / 2 );
525525 if (!seq )
@@ -641,12 +641,13 @@ ast_for_arguments(struct compiling *c, const node *n)
641641 compiler_complex_args (CHILD (ch , 1 )));
642642 }
643643 else if (TYPE (CHILD (ch , 0 )) == NAME ) {
644+ expr_ty name ;
644645 if (!strcmp (STR (CHILD (ch , 0 )), "None" )) {
645646 ast_error (CHILD (ch , 0 ), "assignment to None" );
646647 goto error ;
647648 }
648- expr_ty name = Name (NEW_IDENTIFIER (CHILD (ch , 0 )),
649- Param , LINENO (ch ));
649+ name = Name (NEW_IDENTIFIER (CHILD (ch , 0 )),
650+ Param , LINENO (ch ));
650651 if (!name )
651652 goto error ;
652653 asdl_seq_APPEND (args , name );
@@ -1897,12 +1898,13 @@ ast_for_expr_stmt(struct compiling *c, const node *n)
18971898 if (!targets )
18981899 return NULL ;
18991900 for (i = 0 ; i < NCH (n ) - 2 ; i += 2 ) {
1901+ expr_ty e ;
19001902 node * ch = CHILD (n , i );
19011903 if (TYPE (ch ) == yield_expr ) {
19021904 ast_error (ch , "assignment to yield expression not possible" );
19031905 goto error ;
19041906 }
1905- expr_ty e = ast_for_testlist (c , ch , 0 );
1907+ e = ast_for_testlist (c , ch , 0 );
19061908
19071909 /* set context to assign */
19081910 if (!e )
0 commit comments