aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python/control_flow.py
blob: c8cd2541bb7faccda853eef4a39940f91b23fd66 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
if a == a:
    x = 1
elif b:
    x = 2
else:
    x = 3

while False:
    pass

for _ in range(3):
    pass

with open('/tmp/f', 'w') as f:
    pass

try:
    pass
except:
    pass
finally:
    pass