pdfjs: open system file in binary read
This commit is contained in:
parent
0095b72e03
commit
623b6fba7e
@ -143,7 +143,7 @@ def _read_from_system(system_path, names):
|
|||||||
"""
|
"""
|
||||||
for name in names:
|
for name in names:
|
||||||
try:
|
try:
|
||||||
with open(os.path.join(system_path, name)) as f:
|
with open(os.path.join(system_path, name), 'rb') as f:
|
||||||
return f.read()
|
return f.read()
|
||||||
except OSError:
|
except OSError:
|
||||||
continue
|
continue
|
||||||
|
Loading…
Reference in New Issue
Block a user