Skip to content

Commit

Permalink
Refactor _prober() method for retro-compatibility with Python < 3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lpozo committed Jun 20, 2018
1 parent cb0b4e4 commit f71d432
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions videomorph/converter/media.py
Expand Up @@ -357,9 +357,9 @@ def _process_subtitles(self, subtitle):

def _probe(self, args):
"""Return the prober output as a file like object."""
prober_run = spawn_process([self._profile.prober,
*args,
self.input_path])
process_args = [self._profile.prober, self.input_path]
process_args[1:-1] = args
prober_run = spawn_process(process_args)

return prober_run.stdout

Expand Down

0 comments on commit f71d432

Please sign in to comment.