Hi pylint ppl,

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 ?

Jean-Michel

pylint 0.25.1,
astng 0.21.1, common 0.55.0
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2]


file test.py:

import MySQLdb

class DB:
   SQL_HOST     = "foo"
   SQL_USER     = "foo"
   SQL_PASSWD   = "foo"
   SQL_DATABASE = 'foo'

   bugs = None

#DB.bugs = MySQLdb.connect(host=DB.SQL_HOST, user=DB.SQL_USER, passwd=DB.SQL_PASSWD)

def init():
DB.bugs = MySQLdb.connect(host=DB.SQL_HOST, user=DB.SQL_USER, passwd=DB.SQL_PASSWD)

def foo():
   DB.bugs.close()

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects

Reply via email to