mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 01:46:18 +03:00
Use latin1 encoding to decode bytes
This commit is contained in:
parent
c5d9223a8b
commit
722126aa0a
2
setup.py
2
setup.py
|
@ -185,7 +185,7 @@ def _find_library_dirs_ldconfig():
|
||||||
return []
|
return []
|
||||||
[data, _] = p.communicate()
|
[data, _] = p.communicate()
|
||||||
if isinstance(data, bytes):
|
if isinstance(data, bytes):
|
||||||
data = data.decode()
|
data = data.decode("latin1")
|
||||||
|
|
||||||
dirs = []
|
dirs = []
|
||||||
for dll in re.findall(expr, data):
|
for dll in re.findall(expr, data):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user