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