Hi Eric,
On 21 février 11:09, Eric S. Raymond wrote:
> jcristau suggested I post here after it became apparent that the registration
> form at the logilab website is broken in at least three different ways.
We'll work on that.
> The enclosed Python file breaks pylint 0.23.0 with
>
> logilab.astng.exceptions.InferenceError
I've checked in a fix in pylint repository. Here's the patch:
diff --git a/checkers/utils.py b/checkers/utils.py
--- a/checkers/utils.py
+++ b/checkers/utils.py
@@ -63,10 +63,12 @@ def safe_infer(node):
except astng.InferenceError:
return
try:
inferit.next()
return # None if there is ambiguity on the inferred node
+ except astng.InferenceError:
+ return # there is some kind of ambiguity
except StopIteration:
return value
Thank you for reporting this.
Regards,
-- Sylvain
_______________________________________________
Python-Projects mailing list
[email protected]
http://lists.logilab.org/mailman/listinfo/python-projects