summaryrefslogtreecommitdiff
path: root/pylint/test/input/func_bad_assigment_to_exception_var.py
blob: 640fcf05a229fee452f894fc557efd87846540c2 (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, no-absolute-import
"""ho ho ho"""
from __future__ import print_function
__revision__ = 'toto'
import sys

e = 1
e2 = 'yo'
e3 = None
try:
    raise e
except Exception as ex:
    print(ex)
    _, _, tb = sys.exc_info()



def func():
    """bla bla bla"""
    raise e3

def reraise():
    """reraise a catched exception instance"""
    try:
        raise Exception()
    except Exception as exc:
        print(exc)
        raise exc

raise e3