summaryrefslogtreecommitdiff
path: root/astroid/inference.py
diff options
context:
space:
mode:
authorNick Drozd <nicholasdrozd@gmail.com>2018-07-26 11:55:16 -0500
committerBryce Guinta <bryce.guinta@protonmail.com>2018-07-30 21:40:09 -0600
commit2894a1a392ba564ad05ce695cfc35b11340049fc (patch)
treec55e4813cdeac8f86190b2e8740bf1dd357580ed /astroid/inference.py
parenta48aa1ea5c47b82f6adbb1fecff90c4ab68cd19d (diff)
downloadastroid-git-2894a1a392ba564ad05ce695cfc35b11340049fc.tar.gz
Cut obsolete "explicit StopIteration" comments
The explicit StopIterations were themselves were cut in ceeee097.
Diffstat (limited to 'astroid/inference.py')
-rw-r--r--astroid/inference.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/astroid/inference.py b/astroid/inference.py
index 16095a2c..ec3a370e 100644
--- a/astroid/inference.py
+++ b/astroid/inference.py
@@ -221,8 +221,6 @@ def infer_call(self, context=None):
except exceptions.InferenceError:
## XXX log error ?
continue
- # Explicit StopIteration to return error information, see comment
- # in raise_if_nothing_inferred.
return dict(node=self, context=context)
nodes.Call._infer = infer_call
@@ -321,8 +319,6 @@ def infer_attribute(self, context=None):
except AttributeError:
# XXX method / function
context.boundnode = None
- # Explicit StopIteration to return error information, see comment
- # in raise_if_nothing_inferred.
return dict(node=self, context=context)
nodes.Attribute._infer = decorators.path_wrapper(infer_attribute)
nodes.AssignAttr.infer_lhs = infer_attribute # # won't work with a path wrapper
@@ -404,8 +400,6 @@ def infer_subscript(self, context=None):
return None
yield from assigned.infer(context)
- # Explicit StopIteration to return error information, see comment
- # in raise_if_nothing_inferred.
return dict(node=self, context=context)
nodes.Subscript._infer = decorators.path_wrapper(infer_subscript)
@@ -462,8 +456,6 @@ def _infer_boolop(self, context=None):
else:
yield value
- # Explicit StopIteration to return error information, see comment
- # in raise_if_nothing_inferred.
return dict(node=self, context=context)
nodes.BoolOp._infer = _infer_boolop
@@ -542,8 +534,6 @@ def infer_unaryop(self, context=None):
"""Infer what an UnaryOp should return when evaluated."""
yield from _filter_operation_errors(self, _infer_unaryop, context,
util.BadUnaryOperationMessage)
- # Explicit StopIteration to return error information, see comment
- # in raise_if_nothing_inferred.
return dict(node=self, context=context)
nodes.UnaryOp._infer_unaryop = _infer_unaryop