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

32 lines
415 B
Python

# pylint:disable=C0103
"""ho ho ho"""
__revision__ = 'toto'
import sys
e = 1
e2 = 'yo'
e3 = None
try:
raise e
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