From 2c0249b1e833108cc13c0589f3018851f2311d0b Mon Sep 17 00:00:00 2001 From: jvoisin Date: Mon, 28 Mar 2016 22:48:00 +0200 Subject: Even more python3 portability --- libmat/exiftool.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libmat/exiftool.py') diff --git a/libmat/exiftool.py b/libmat/exiftool.py index efe6002..83513b4 100644 --- a/libmat/exiftool.py +++ b/libmat/exiftool.py @@ -47,8 +47,8 @@ class ExiftoolStripper(parser.GenericParser): field name : value field name : value """ - output = subprocess.Popen(['exiftool', self.filename], - stdout=subprocess.PIPE).communicate()[0] + output = str(subprocess.Popen(['exiftool', self.filename], + stdout=subprocess.PIPE).communicate()[0]) meta = {} for i in output.split('\n')[:-1]: # chop last char ('\n') key = i.split(':')[0].strip() -- cgit v1.3