remove unneeded list
This commit is contained in:
		
							parent
							
								
									aae89cd021
								
							
						
					
					
						commit
						78be3db9bb
					
				|  | @ -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): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue