Statistics
| Revision:

gvsig-scripting / org.gvsig.scripting / trunk / org.gvsig.scripting / org.gvsig.scripting.app / org.gvsig.scripting.app.mainplugin / src / main / resources-plugin / scripting / lib / pylint / test / functional / with_used_before_assign.py @ 745

History | View | Annotate | Download (304 Bytes)

1
'''
2
Regression test for
3
https://bitbucket.org/logilab/pylint/issue/128/attributeerror-when-parsing
4
'''
5
from __future__ import with_statement
6

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