use a plain old list for queuing

This commit is contained in:
Benjamin Peterson 2011-06-28 21:11:56 -05:00
parent f286a02582
commit d52ff3e2b9
1 changed files with 2 additions and 2 deletions

View File

@ -113,9 +113,9 @@ class AssertionRewriter(ast.NodeVisitor):
for alias in aliases]
mod.body[pos:pos] = imports
# Collect asserts.
nodes = collections.deque([mod])
nodes = [mod]
while nodes:
node = nodes.popleft()
node = nodes.pop()
for name, field in ast.iter_fields(node):
if isinstance(field, list):
new = []