third_party.pylibs.pylint.src/test/input/func_w0702.py

18 lines
242 B
Python
Raw Normal View History

2006-04-26 10:48:09 +00:00
"""check empty except statement
"""
__revision__ = 0
if __revision__:
try:
print __revision__
except:
print 'error'
try:
__revision__ += 1
except TypeError:
print 'error'
except Exception:
print 'error'