diff options
| author | jvoisin | 2016-03-28 22:48:00 +0200 |
|---|---|---|
| committer | jvoisin | 2016-03-28 22:48:00 +0200 |
| commit | 2c0249b1e833108cc13c0589f3018851f2311d0b (patch) | |
| tree | 5beeecfa4da4b79194451b0ba302ef15aa4e407e /libmat/exiftool.py | |
| parent | 98fb7fe1f0edec16ecd405707cc903d2b4a7dc40 (diff) | |
Even more python3 portability
Diffstat (limited to 'libmat/exiftool.py')
| -rw-r--r-- | libmat/exiftool.py | 4 |
1 files changed, 2 insertions, 2 deletions
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): | |||
| 47 | field name : value | 47 | field name : value |
| 48 | field name : value | 48 | field name : value |
| 49 | """ | 49 | """ |
| 50 | output = subprocess.Popen(['exiftool', self.filename], | 50 | output = str(subprocess.Popen(['exiftool', self.filename], |
| 51 | stdout=subprocess.PIPE).communicate()[0] | 51 | stdout=subprocess.PIPE).communicate()[0]) |
| 52 | meta = {} | 52 | meta = {} |
| 53 | for i in output.split('\n')[:-1]: # chop last char ('\n') | 53 | for i in output.split('\n')[:-1]: # chop last char ('\n') |
| 54 | key = i.split(':')[0].strip() | 54 | key = i.split(':')[0].strip() |
