summaryrefslogtreecommitdiff
path: root/test/input/func_bad_assigment_to_exception_var.py
blob: 6b859ba232b73609a4a3b855433da26f3e1a691b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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