On 31 mai 17:14, Jean-Michel Pichavant wrote:
> Hi pylint ppl,

Hi,
> The following cmd line fails
> 
> > pylint -E test.py --rcfile='./noexist'
> No config file found, using default configuration
> ************* Module test
> E: 17,0:foo: Instance of 'Connection' has no 'close' member
> 
> 
> It can be 'fixed' by uncommenting the commented line below.
> I cannot reproduce it with MySQLdb 1.2.2
> 
> I tried to have a look at MySQLdb source but everything is magically
> hidden in some egg file I cannot find.
> 
> Is it worth opening a ticket ?

The pb is probably because some magic is happening to create the 'close'
method in MySQLdb. If this is verified (most likely), then I'll go with
my usual answer those days: following http://www.logilab.org/blogentry/78354,
one could write a plugin making PyLint understand properly MySQLdb.

If it is not verified, then it's probably worth a ticket :)
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (09.54.03.55.76)
Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations
Développement logiciel sur mesure:       http://www.logilab.fr/services
CubicWeb, the semantic web framework:    http://www.cubicweb.org
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to