From d4a232d5945fc3a5328851f1afd6253a48557203 Mon Sep 17 00:00:00 2001 From: j Date: Tue, 4 Oct 2016 10:29:17 +0200 Subject: [PATCH] py3 decode --- pandora/document/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pandora/document/utils.py b/pandora/document/utils.py index f6530ba9d..e5f493457 100644 --- a/pandora/document/utils.py +++ b/pandora/document/utils.py @@ -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: