From 2894a1a392ba564ad05ce695cfc35b11340049fc Mon Sep 17 00:00:00 2001 From: Nick Drozd Date: Thu, 26 Jul 2018 11:55:16 -0500 Subject: Cut obsolete "explicit StopIteration" comments The explicit StopIterations were themselves were cut in ceeee097. --- astroid/node_classes.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'astroid/node_classes.py') 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): -- cgit v1.2.1