Skip to content

Commit 4a50e7b

Browse files
[gardening] PEP-8 fixes
1 parent f6b8bc2 commit 4a50e7b

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

utils/swift_build_support/swift_build_support/shell.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,7 @@ def copytree(src, dest, dry_run=None, echo=True):
178178
# Initialized later
179179
lock = None
180180

181+
181182
def run(*args, **kwargs):
182183
repo_path = os.getcwd()
183184
echo_output = kwargs.pop('echo', False)
@@ -187,7 +188,8 @@ def run(*args, **kwargs):
187188
_echo_command(dry_run, *args, env=env)
188189
return(None, 0, args)
189190

190-
my_pipe = subprocess.Popen(*args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
191+
my_pipe = subprocess.Popen(
192+
*args, stdout=subprocess.PIPE, stderr=subprocess.PIPE, **kwargs)
191193
(stdout, stderr) = my_pipe.communicate()
192194
ret = my_pipe.wait()
193195

@@ -223,7 +225,8 @@ def init(l):
223225
n_processes = cpu_count() * 2
224226

225227
l = Lock()
226-
print("Running ``%s`` with up to %d processes." % (fn.__name__, n_processes))
228+
print("Running ``%s`` with up to %d processes." %
229+
(fn.__name__, n_processes))
227230
pool = Pool(processes=n_processes, initializer=init, initargs=(l,))
228231
results = pool.map_async(func=fn, iterable=pool_args).get(9999999)
229232
pool.close()

utils/swift_build_support/tests/products/test_swift.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ def test_swift_runtime_tsan(self):
9595
build_dir='/path/to/build')
9696
self.assertEqual(set(swift.cmake_options),
9797
set(['-DSWIFT_RUNTIME_USE_SANITIZERS=Thread',
98-
'-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE',
99-
'-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE']))
98+
'-DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE',
99+
'-DSWIFT_STDLIB_ENABLE_SIL_OWNERSHIP=FALSE']))
100100

101101
def test_swift_compiler_vendor_flags(self):
102102
self.args.compiler_vendor = "none"

0 commit comments

Comments
 (0)