Bring new Python code in line with subset of PEP 8 used in project.

This commit is contained in:
practicalswift
2016-02-08 20:27:02 +01:00
parent 6f7701481c
commit a7cbdb4ea5
7 changed files with 67 additions and 85 deletions

View File

@@ -13,7 +13,6 @@
# ===----------------------------------------------------------------------===//
import os
import sys
import subprocess
import multiprocessing
import re
@@ -85,7 +84,7 @@ class BenchmarkDriver(object):
results = None
if self.enable_parallel:
p = multiprocessing.Pool()
z = zip([self]*len(prepared_input), prepared_input)
z = zip([self] * len(prepared_input), prepared_input)
results = p.map(_unwrap_self, z)
else:
results = map(self.process_input, prepared_input)
@@ -112,4 +111,3 @@ class BenchmarkDriver(object):
has_failure = reduce(max, [d['has_failure']for d in self.data])
self.print_data(self.data, max_test_len)
return not has_failure