summaryrefslogtreecommitdiff
path: root/test/input/func_bad_assigment_to_exception_var.py
blob: 61892ce0dcbc4a7a8d897a398a1da597eb75daf7 (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
# pylint:disable=C0103, print-statement
"""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