summaryrefslogtreecommitdiff
path: root/test/input/func_with_used_before_assignment.py
blob: c79815cde5de4d308dca095d61dddeb56124ead1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
'''
Regression test for
https://bitbucket.org/logilab/pylint/issue/128/attributeerror-when-parsing
'''
from __future__ import with_statement
__revision__ = 1

def do_nothing():
    """ empty """
    with open("") as ctx.obj:
        context.do()
        context = None