mirror of
https://fuchsia.googlesource.com/third_party/github.com/pylint-dev/pylint
synced 2024-09-22 08:33:42 +00:00
32 lines
427 B
Python
32 lines
427 B
Python
|
# pylint:disable-msg=C0103
|
||
|
"""ho ho ho"""
|
||
|
__revision__ = 'toto'
|
||
|
|
||
|
import sys
|
||
|
|
||
|
e = 1
|
||
|
e2 = 'yo'
|
||
|
e3 = None
|
||
|
try:
|
||
|
raise e, 'toto'
|
||
|
except Exception, ex:
|
||
|
print ex
|
||
|
_, _, tb = sys.exc_info()
|
||
|
raise e2
|
||
|
|
||
|
|
||
|
def func():
|
||
|
"""bla bla bla"""
|
||
|
raise e3
|
||
|
|
||
|
def reraise():
|
||
|
"""reraise a catched exception instance"""
|
||
|
try:
|
||
|
raise Exception()
|
||
|
except Exception, exc:
|
||
|
print exc
|
||
|
raise exc
|
||
|
|
||
|
raise e3
|
||
|
|