third_party.pylibs.pylint.src/test/input/func_bad_assigment_to_exception_var.py
root 4becf6f9e5 forget the past.
forget the past.
2006-04-26 10:48:09 +00:00

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