[Python-projects] pylint, mechanize and E1102
Tibor Simko
tibor.simko at cern.ch
Wed Sep 12 12:46:35 CEST 2007
Hello:
Consider the following code snippet using mechanize[1]:
$ cat z_z.py
from mechanize import Browser
browser = Browser()
browser.open("http://localhost/")
It leads to an apparently false positive E1102 report:
$ pylint -e ./z_z.py
************* Module z_z
E: 3: browser.open is not callable
This is with:
$ pylint --version
pylint 0.13.2,
astng 0.17.0, common 0.21.2
Python 2.4.4 (#1, Sep 9 2007, 22:46:13)
[GCC 4.1.2 (Gentoo 4.1.2 p1.0.1)]
Footnotes:
[1] <http://wwwsearch.sourceforge.net/mechanize/>
Best regards
--
Tibor
More information about the Python-Projects
mailing list