diff options
author | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-18 11:14:38 +0100 |
---|---|---|
committer | Sylvain Thénault <sylvain.thenault@logilab.fr> | 2009-03-18 11:14:38 +0100 |
commit | dafc8c716aedb846f3aee4fd13b5d71fcf4430d4 (patch) | |
tree | 09ca3bf53f7da7a7ee4cf99626f3447563ebb12f /inference.py | |
parent | a4e3901403aa98c112c268e60d1ed2029d5041d3 (diff) | |
download | astroid-git-dafc8c716aedb846f3aee4fd13b5d71fcf4430d4.tar.gz |
always propagate context to avoid infinite loops
--HG--
branch : _ast_compat
Diffstat (limited to 'inference.py')
-rw-r--r-- | inference.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/inference.py b/inference.py index 0c6ee1dc..51dd06b2 100644 --- a/inference.py +++ b/inference.py @@ -122,7 +122,7 @@ class CallContext: its.append((YES,)) continue try: - its.append(infered.getitem(argindex).infer(context)) + its.append(infered.getitem(argindex, context).infer(context)) except (InferenceError, AttributeError): its.append((YES,)) except (IndexError, TypeError): @@ -137,7 +137,7 @@ class CallContext: its.append((YES,)) continue try: - its.append(infered.getitem(name).infer(context)) + its.append(infered.getitem(name, context).infer(context)) except (InferenceError, AttributeError): its.append((YES,)) except (IndexError, TypeError): @@ -298,7 +298,7 @@ def infer_subscript(self, context=None): return try: # suppose it's a Tuple/List node (attribute error else) - assigned = self.expr.getitem(index.value) + assigned = self.expr.getitem(index.value, context) except AttributeError: raise InferenceError() except (IndexError, TypeError): |