On 19 mars 15:00, Okko Willeboordse wrote:
> Hello,

Hi,
 
> With 0.27.0 I get the following exception;
> 
> Traceback (most recent call last):
[snip tb]
>   File 
> "C:\python26\lib\site-packages\pylint-0.27.0-py2.6.egg\pylint\checkers\logging.py",
>  line 88, in visit_callfunc
>     and [ancestor for ancestor in inferred._proxied.ancestors() if (
> AttributeError: 'Function' object has no attribute 'ancestors'
> 
> With < 0.26.0 no exceptions, with 0.26.0 I didn't test.

Sounds like Mike Bryant who added inference to the logging checker in 0.27 
introduced
a bug along the way. I guess that it supposes inferenced values are always 
class instances
while it's not (eg Function in your case).

Could you extract the smallest possible test case demonstrating the pb so we 
can fix
it and add it to the tests base?

regards,
-- 
Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (05.62.17.16.42)
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