[py-svn] commit/pytest: gutworth: use a plain old list for queuing
Bitbucket
commits-noreply at bitbucket.org
Wed Jun 29 04:11:52 CEST 2011
1 new changeset in pytest:
http://bitbucket.org/hpk42/pytest/changeset/59d84ab29fc4/
changeset: 59d84ab29fc4
user: gutworth
date: 2011-06-29 04:11:56
summary: use a plain old list for queuing
affected #: 1 file (23 bytes)
--- a/_pytest/assertion/rewrite.py Tue Jun 28 20:21:22 2011 -0500
+++ b/_pytest/assertion/rewrite.py Tue Jun 28 21:11:56 2011 -0500
@@ -113,9 +113,9 @@
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 = []
Repository URL: https://bitbucket.org/hpk42/pytest/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the pytest-commit
mailing list