summaryrefslogtreecommitdiff
path: root/protocols.py
diff options
context:
space:
mode:
authorSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-18 16:09:53 +0100
committerSylvain Thénault <sylvain.thenault@logilab.fr>2009-03-18 16:09:53 +0100
commit6ac08a007866ae11d8f398245dfc05cee806b236 (patch)
tree4c60be8c4c4f0fb13bf14c4c3f6b71877f304eee /protocols.py
parent536f3efaaa298115a93fc34a7909c8c4c4260ca9 (diff)
downloadastroid-git-6ac08a007866ae11d8f398245dfc05cee806b236.tar.gz
lint fixes
--HG-- branch : _ast_compat
Diffstat (limited to 'protocols.py')
-rw-r--r--protocols.py4
1 files changed, 1 insertions, 3 deletions
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