pep8 and python 3 compatibility fixes

This commit is contained in:
Steven Hazel
2015-11-18 13:39:53 -08:00
parent 3140873f0a
commit 412febd898

View File

@@ -373,10 +373,11 @@ class LoadScheduling:
initial_batch = max(len(self.pending) // 4,
2 * len(self.nodes))
# distribute tests round-robin up to the batch size (or until we run out)
# distribute tests round-robin up to the batch size
# (or until we run out)
nodes = itertools.cycle(self.nodes)
for i in range(initial_batch):
self._send_tests(nodes.next(), 1)
self._send_tests(next(nodes), 1)
if not self.pending:
# initial distribution sent all tests, start node shutdown