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/node_classes.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/node_classes.py')
| -rw-r--r-- | astroid/node_classes.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/astroid/node_classes.py b/astroid/node_classes.py index 405e5971..9e1a0754 100644 --- a/astroid/node_classes.py +++ b/astroid/node_classes.py @@ -58,15 +58,11 @@ def unpack_infer(stmt, context=None): yield elt continue yield from unpack_infer(elt, context) - # Explicit StopIteration to return error information, see comment - # in raise_if_nothing_inferred. return dict(node=stmt, context=context) # if inferred is a final node, return it and stop inferred = next(stmt.infer(context)) if inferred is stmt: yield inferred - # Explicit StopIteration to return error information, see comment - # in raise_if_nothing_inferred. return dict(node=stmt, context=context) # else, infer recursively, except Uninferable object that should be returned as is for inferred in stmt.infer(context): |
