Sylvain Thénault wrote:
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 :)
Actually, it looks like something were wrong with the workstation
installation. I couldn't reproduce it on other machines. I rolled back
the mySQLdb package to 1.2.2, still happening.
Removed / reinstalled pylint + logilab, and now it works. I checked the
version and easy_install reinstalled the exact same version. I don't
konw what happened to be honest.
The good news is that nothing's wrong with eiter pylint or mySQL.
Thanks for the help though, I'll keep in mind this plugin feature, may
become handy in the future.
Speaking of plugin, is there any online documenation on astng ? It's far
from being trivial and I noticed all APIs are documented. I probably
could generate the documenation myself, but you may already have an
online version.
JM
_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects