aboutsummaryrefslogtreecommitdiffstats
path: root/tests/indent/python/control_flow.py
blob: 7ec02e3fffe4f816046dbe66949012f9327d642a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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

while (a > 4 and
       b > 5):
    pass

try:
    pass