github.com/cheshirekow/buildtools@v0.0.0-20200224190056-5d637702fe81/build/testdata/054.golden (about) 1 # If-else clauses 2 3 if True: 4 pass 5 elif False: 6 pass 7 8 if foo in bar: 9 for f in foo: 10 # loop 11 f() 12 elif True: 13 a = b 14 15 elif False: 16 #assign 17 b = a 18 else: 19 (a, b) = (b, a) 20 21 if foo: 22 bar 23 24 if foo: # this is assigned to foo 25 pass 26 else: # this is assigned to "else" 27 if bar: # this is assigned to bar 28 pass 29 else: # this is assigned to "else" too 30 pass 31 32 if foo: 33 pass 34 else: 35 # comment 36 if bar: 37 pass 38 39 if foo: 40 pass 41 else: 42 # comment 43 44 if bar: 45 pass