py3 decode
This commit is contained in:
parent
addaa56d85
commit
d4a232d594
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ def pdfinfo(pdf):
|
|||
p = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE, close_fds=True)
|
||||
stdout, stderr = p.communicate()
|
||||
data = {}
|
||||
for line in stdout.strip().split('\n'):
|
||||
for line in stdout.decode('utf-8').strip().split('\n'):
|
||||
parts = line.split(':')
|
||||
key = parts[0].lower().strip()
|
||||
if key:
|
||||
|
|
Loading…
Reference in a new issue