<gh_stars>100-1000
'''
Regression test for
https://bitbucket.org/logilab/pylint/issue/128/attributeerror-when-parsing
'''
from __future__ import with_statement

def do_nothing():
    """ empty """
    with open("") as ctx.obj:  # [undefined-variable]
        context.do()  # [used-before-assignment]
        context = None

'''
Regression test for
https://bitbucket.org/logilab/pylint/issue/128/attributeerror-when-parsing
'''
from __future__ import with_statement

def do_nothing():
    """ empty """
    with open("") as ctx.obj:  # [undefined-variable]
        context.do()  # [used-before-assignment]
        context = None
Regression test for https://bitbucket.org/logilab/pylint/issue/128/attributeerror-when-parsing empty # [undefined-variable] # [used-before-assignment]