Skip to content

Commit f71d432

Browse files
author
lpozo
committed
Refactor _prober() method for retro-compatibility with Python < 3.5
1 parent cb0b4e4 commit f71d432

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

videomorph/converter/media.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -357,9 +357,9 @@ def _process_subtitles(self, subtitle):
357357

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

364364
return prober_run.stdout
365365

0 commit comments

Comments
 (0)