[Python-projects] logilab-common regression (pylint E0611 false positive)

Andrey Rahmatullin wrar at altlinux.ru
Mon Apr 6 20:29:48 CEST 2009


Hello.

After upgrading to logilab-common 0.39.0 pylint started to issue E0611 on
"from xml.etree.cElementTree import ElementTree" line:

wrar at wrars-comp ~/tmp $ cat 1.py
from xml.etree.cElementTree import ElementTree
wrar at wrars-comp ~/tmp $ pylint --version
No config file found, using default configuration
pylint 0.18.0,
astng 0.19.0, common 0.39.0
Python 2.5.4 (r254:67916, Feb 20 2009, 23:10:38)
[GCC 4.3.2 20081105 (ALT Linux 4.3.2-alt7)]
wrar at wrars-comp ~/tmp $ pylint 1.py | grep E
No config file found, using default configuration
E:  1: No name 'etree' in module 'xml'
W:  1: Unused import ElementTree
|E0611      |1          |
wrar at wrars-comp ~/tmp $ python 1.py
wrar at wrars-comp ~/tmp $

It may be because of "modutils: locate modules in zip/egg archive", but I
didn't try to investigate further. Also, on my other system (Debian sid)
this regression isn't reproduced, so it can be some packaging error or
just incompatibility.

-- 
WBR, wRAR (ALT Linux Team)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.logilab.org/pipermail/python-projects/attachments/20090407/e3920212/attachment-0269.sig>


More information about the Python-Projects mailing list