remove unneeded list

This commit is contained in:
Benjamin Peterson 2011-05-19 19:15:20 -05:00
parent aae89cd021
commit 78be3db9bb
1 changed files with 0 additions and 2 deletions

View File

@ -93,7 +93,6 @@ class AssertionRewriter(ast.NodeVisitor):
pos += 1
mod.body[pos:pos] = imports
# Collect asserts.
asserts = []
nodes = collections.deque([mod])
while nodes:
node = nodes.popleft()
@ -104,7 +103,6 @@ class AssertionRewriter(ast.NodeVisitor):
if isinstance(child, ast.Assert):
# Transform assert.
new.extend(self.visit(child))
asserts.append((field, i, child))
else:
new.append(child)
if isinstance(child, ast.AST):