summaryrefslogtreecommitdiff
path: root/test/input/func_w0702.py
blob: 1f82a236c7e4543d75ca496a5bc2fcbd2999fc1b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
"""check empty except statement
"""
from __future__ import print_function
__revision__ = 0

if __revision__:
    try:
        print(__revision__)
    except:
        print('error')

try:
    __revision__ += 1
except TypeError:
    print('error')
except Exception:
    print('error')