Merge pull request #5870 from radarhere/setup

Use latin1 encoding to decode bytes
This commit is contained in:
Hugo van Kemenade 2021-12-28 10:07:44 +02:00 committed by GitHub
commit 39de05363a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -185,7 +185,7 @@ def _find_library_dirs_ldconfig():
return []
[data, _] = p.communicate()
if isinstance(data, bytes):
data = data.decode()
data = data.decode("latin1")
dirs = []
for dll in re.findall(expr, data):