diff options
author | Nick Drozd <nicholasdrozd@gmail.com> | 2018-07-26 11:55:16 -0500 |
---|---|---|
committer | Bryce Guinta <bryce.guinta@protonmail.com> | 2018-07-30 21:40:09 -0600 |
commit | 2894a1a392ba564ad05ce695cfc35b11340049fc (patch) | |
tree | c55e4813cdeac8f86190b2e8740bf1dd357580ed /astroid/protocols.py | |
parent | a48aa1ea5c47b82f6adbb1fecff90c4ab68cd19d (diff) | |
download | astroid-git-2894a1a392ba564ad05ce695cfc35b11340049fc.tar.gz |
Cut obsolete "explicit StopIteration" comments
The explicit StopIterations were themselves were cut in ceeee097.
Diffstat (limited to 'astroid/protocols.py')
-rw-r--r-- | astroid/protocols.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/astroid/protocols.py b/astroid/protocols.py index 933c5840..0397595d 100644 --- a/astroid/protocols.py +++ b/astroid/protocols.py @@ -263,8 +263,6 @@ def for_assigned_stmts(self, node=None, context=None, asspath=None): yield from lst.elts else: yield from _resolve_looppart(self.iter.infer(context), asspath, context) - # Explicit StopIteration to return error information, see comment - # in raise_if_nothing_inferred. return dict(node=self, unknown=node, assign_path=asspath, context=context) @@ -362,8 +360,6 @@ def assign_assigned_stmts(self, node=None, context=None, asspath=None): return None yield from _resolve_asspart(self.value.infer(context), asspath, context) - # Explicit StopIteration to return error information, see comment - # in raise_if_nothing_inferred. return dict(node=self, unknown=node, assign_path=asspath, context=context) @@ -427,8 +423,6 @@ def excepthandler_assigned_stmts(self, node=None, context=None, asspath=None): assigned = objects.ExceptionInstance(assigned) yield assigned - # Explicit StopIteration to return error information, see comment - # in raise_if_nothing_inferred. return dict(node=self, unknown=node, assign_path=asspath, context=context) @@ -543,8 +537,6 @@ def with_assigned_stmts(self, node=None, context=None, asspath=None): 'in {node!r}.', node=self, targets=node, assign_path=asspath, context=context) from exc yield obj - # Explicit StopIteration to return error information, see comment - # in raise_if_nothing_inferred. return dict(node=self, unknown=node, assign_path=asspath, context=context) |