#NEWLINE# def p_with_stmt2( p ) : #NEWLINE# #INDENT# ' with_stmt : WITH with_item with_item_list COLON suite ' #NEWLINE# with_stmt = ast . With ( ) #NEWLINE# ( ctxt , opt_vars ) = p [ 2 ] #NEWLINE# with_stmt . context_expr = ctxt #NEWLINE# with_stmt . optional_vars = opt_vars #NEWLINE# root = with_stmt #NEWLINE# last = with_stmt #NEWLINE# for ( ctxt , opt_vars ) in p [ 3 ] : #NEWLINE# #INDENT# with_stmt = ast . With ( ) #NEWLINE# with_stmt . context_expr = ctxt #NEWLINE# with_stmt . optional_vars = opt_vars #NEWLINE# last . body = [ with_stmt ] #NEWLINE# last = with_stmt #NEWLINE# #UNINDENT# last . body = p [ 5 ] #NEWLINE# root . lineno = p . lineno ( 1 ) #NEWLINE# ast . fix_missing_locations ( root ) #NEWLINE# p [ 0 ] = root