Skip to content

Commit 0a479d3

Browse files
committed
STY: Apply suggestions from CI running black
1 parent 22a78ae commit 0a479d3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

distutils/tests/test_build_ext.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -101,9 +101,11 @@ def test_build_ext(self):
101101
xx_ext = Extension('xx', [xx_c])
102102
if sys.platform != "win32":
103103
xx_ext = Extension(
104-
'xx', [xx_c],
105-
library_dirs=['/usr/lib'], libraries=['z'],
106-
runtime_library_dirs=['/usr/lib']
104+
'xx',
105+
[xx_c],
106+
library_dirs=['/usr/lib'],
107+
libraries=['z'],
108+
runtime_library_dirs=['/usr/lib'],
107109
)
108110
dist = Distribution({'name': 'xx', 'ext_modules': [xx_ext]})
109111
dist.package_dir = self.tmp_dir

distutils/unixccompiler.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,8 @@ class UnixCCompiler(CCompiler):
151151
def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
152152
"""Remove standard library path from rpath"""
153153
libraries, library_dirs, runtime_library_dirs = super()._fix_lib_args(
154-
libraries, library_dirs, runtime_library_dirs)
154+
libraries, library_dirs, runtime_library_dirs
155+
)
155156
libdir = sysconfig.get_config_var('LIBDIR')
156157
if (
157158
runtime_library_dirs
@@ -160,7 +161,7 @@ def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
160161
):
161162
runtime_library_dirs.remove(libdir)
162163
return libraries, library_dirs, runtime_library_dirs
163-
164+
164165
def preprocess(
165166
self,
166167
source,

0 commit comments

Comments
 (0)