[Python-projects] pylint, mechanize and E1102

Sylvain =?UTF-8?Q?Th=E9nault?= sylvain.thenault at logilab.fr
Thu Oct 18 12:29:53 CEST 2007


On Wed, Sep 12, 2007 at 12:46:35PM +0200, Tibor Simko wrote:
> 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/>

https://www.logilab.net/elo/ticket/4294
-- 
Sylvain Thénault                               LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian:  http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
Python et calcul scientifique:           http://www.logilab.fr/science



More information about the Python-Projects mailing list