Bonjour, Hi all,
I found a problem inside astng.scoped_nodes.py
The module fails to import Generator from logilab.astng.infutils but uses it
inside FunctionNG.infer_call_result().
This omission causes pylint to crash on some parsing of some files.
Here's the patch to solve the problem (simply import Generator):
<patch>
--- old\scoped_nodes.py 2009-12-18 18:11:28.034387900 -0500
+++ scoped_nodes.py 2009-12-18 18:11:37.706510500 -0500
@@ -41,7 +41,7 @@
AssName, DelAttr, DelName, const_factory as cf, NodeNG, StmtMixIn)
from logilab.astng.infutils import YES, InferenceContext, Instance, \
- UnboundMethod, BoundMethod, copy_context, unpack_infer, _infer_stmts
+ UnboundMethod, BoundMethod, copy_context, unpack_infer, _infer_stmts,
Generator
from logilab.astng.nodes_as_string import as_string
from logilab.astng.lookup import LookupMixIn, LocalsDictMixIn
</patch>
Hope this helps,
Pierre Rouleau
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects