python-by-example-150-chall.../venv/lib/python3.6/site-packages/pylint/test/functional/broad_except.py

15 lines
260 B
Python
Raw Permalink Normal View History

2019-08-04 20:26:35 +08:00
# pylint: disable=missing-docstring
from __future__ import print_function
__revision__ = 0
try:
__revision__ += 1
except Exception: # [broad-except]
print('error')
try:
__revision__ += 1
except BaseException: # [broad-except]
print('error')