When run on the following file:

    y = None
    def f():
        global y
        from x import y

pylint incorrectly issues the following three warnings:

************* Module test
W0621:  4:f: Redefining name 'y' from outer scope (line 1)
W0602:  3:f: Using global for 'y' but no assignment is done
W0612:  4:f: Unused variable 'y'

Pylint version info:

$ pylint --version
pylint 0.22.0,
astng 0.21.0, common 0.53.0
Python 2.7 (r27:82500, Sep 16 2010, 18:02:00)
[GCC 4.5.1 20100907 (Red Hat 4.5.1-3)]

James.
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to