Skip to content

Commit c009de8

Browse files
committed
👹 Feed the hobgoblins (delint).
1 parent 0a7fb2c commit c009de8

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

distutils/compat/py38.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ def removeprefix(self, prefix):
1414
return self[len(prefix) :]
1515
else:
1616
return self[:]
17+
1718
else:
1819

1920
def removesuffix(self, suffix):

distutils/tests/test_build_ext.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ def test_build_ext(self, copy_so):
112112
runtime_library_dirs=['/usr/lib'],
113113
)
114114
elif sys.platform == 'linux':
115-
libz_so = {os.path.realpath(name) for name in glob.iglob('/usr/lib*/libz.so*')}
115+
libz_so = {
116+
os.path.realpath(name) for name in glob.iglob('/usr/lib*/libz.so*')
117+
}
116118
libz_so = sorted(libz_so, key=lambda lib_path: len(lib_path))
117119
shutil.copyfile(libz_so[-1], '/tmp/libxx_z.so')
118120

@@ -167,10 +169,12 @@ def _test_xx(copy_so):
167169
["readelf", "-d", xx.__file__], universal_newlines=True
168170
)
169171
import pprint
172+
170173
pprint.pprint(so_headers)
171174
rpaths = [
172175
rpath
173-
for line in so_headers.split("\n") if "RPATH" in line or "RUNPATH" in line
176+
for line in so_headers.split("\n")
177+
if "RPATH" in line or "RUNPATH" in line
174178
for rpath in line.split()[2][1:-1].split(":")
175179
]
176180
if not copy_so:

0 commit comments

Comments
 (0)