@@ -100,6 +100,8 @@ def to_tuple(t):
100100 # With
101101 "with x as y: pass" ,
102102 "with x as y, z as q: pass" ,
103+ "with (x as y): pass" ,
104+ "with (x, y): pass" ,
103105 # Raise
104106 "raise Exception('string')" ,
105107 # TryExcept
@@ -3015,6 +3017,8 @@ def main():
30153017('Module' , [('If' , (1 , 0 , 6 , 6 ), ('Name' , (1 , 3 , 1 , 4 ), 'a' , ('Load' ,)), [('Pass' , (2 , 2 , 2 , 6 ))], [('If' , (3 , 0 , 6 , 6 ), ('Name' , (3 , 5 , 3 , 6 ), 'b' , ('Load' ,)), [('Pass' , (4 , 2 , 4 , 6 ))], [('Pass' , (6 , 2 , 6 , 6 ))])])], []),
30163018('Module' , [('With' , (1 , 0 , 1 , 17 ), [('withitem' , ('Name' , (1 , 5 , 1 , 6 ), 'x' , ('Load' ,)), ('Name' , (1 , 10 , 1 , 11 ), 'y' , ('Store' ,)))], [('Pass' , (1 , 13 , 1 , 17 ))], None )], []),
30173019('Module' , [('With' , (1 , 0 , 1 , 25 ), [('withitem' , ('Name' , (1 , 5 , 1 , 6 ), 'x' , ('Load' ,)), ('Name' , (1 , 10 , 1 , 11 ), 'y' , ('Store' ,))), ('withitem' , ('Name' , (1 , 13 , 1 , 14 ), 'z' , ('Load' ,)), ('Name' , (1 , 18 , 1 , 19 ), 'q' , ('Store' ,)))], [('Pass' , (1 , 21 , 1 , 25 ))], None )], []),
3020+ ('Module' , [('With' , (1 , 0 , 1 , 19 ), [('withitem' , ('Name' , (1 , 6 , 1 , 7 ), 'x' , ('Load' ,)), ('Name' , (1 , 11 , 1 , 12 ), 'y' , ('Store' ,)))], [('Pass' , (1 , 15 , 1 , 19 ))], None )], []),
3021+ ('Module' , [('With' , (1 , 0 , 1 , 17 ), [('withitem' , ('Name' , (1 , 6 , 1 , 7 ), 'x' , ('Load' ,)), None ), ('withitem' , ('Name' , (1 , 9 , 1 , 10 ), 'y' , ('Load' ,)), None )], [('Pass' , (1 , 13 , 1 , 17 ))], None )], []),
30183022('Module' , [('Raise' , (1 , 0 , 1 , 25 ), ('Call' , (1 , 6 , 1 , 25 ), ('Name' , (1 , 6 , 1 , 15 ), 'Exception' , ('Load' ,)), [('Constant' , (1 , 16 , 1 , 24 ), 'string' , None )], []), None )], []),
30193023('Module' , [('Try' , (1 , 0 , 4 , 6 ), [('Pass' , (2 , 2 , 2 , 6 ))], [('ExceptHandler' , (3 , 0 , 4 , 6 ), ('Name' , (3 , 7 , 3 , 16 ), 'Exception' , ('Load' ,)), None , [('Pass' , (4 , 2 , 4 , 6 ))])], [], [])], []),
30203024('Module' , [('Try' , (1 , 0 , 4 , 6 ), [('Pass' , (2 , 2 , 2 , 6 ))], [], [], [('Pass' , (4 , 2 , 4 , 6 ))])], []),
0 commit comments