From 6ac08a007866ae11d8f398245dfc05cee806b236 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sylvain=20Th=C3=A9nault?= Date: Wed, 18 Mar 2009 16:09:53 +0100 Subject: lint fixes --HG-- branch : _ast_compat --- protocols.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'protocols.py') diff --git a/protocols.py b/protocols.py index d7cb0e3e..070b0069 100644 --- a/protocols.py +++ b/protocols.py @@ -149,7 +149,7 @@ def _resolve_looppart(parts, asspath, context): itered = part.itered() except TypeError: continue # XXX log error - for stmt in part.itered(): + for stmt in itered: try: assigned = stmt.getitem(index, context) except (AttributeError, IndexError): @@ -157,7 +157,6 @@ def _resolve_looppart(parts, asspath, context): if not asspath: # we acheived to resolved the assigment path, # don't infer the last part - found = True yield assigned elif assigned is YES: break @@ -270,7 +269,6 @@ def _resolve_asspart(parts, asspath, context): if not asspath: # we acheived to resolved the assigment path, don't infer the # last part - found = True yield assigned elif assigned is YES: return -- cgit v1.2.1