From d75e55e8706306749291abb4be2b7a68e7ec754b Mon Sep 17 00:00:00 2001 From: Jamie Hardt Date: Wed, 8 Nov 2023 18:44:23 -0800 Subject: [PATCH] Text twiddles --- tests/utils.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/utils.py b/tests/utils.py index b802b8e..17ae284 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -8,7 +8,8 @@ FFPROBE = 'ffprobe' def ffprobe(path): - arguments = [FFPROBE, "-of", "json", "-show_format", "-show_streams", path] + arguments = [FFPROBE, "-of", "json", + "-show_format", "-show_streams", path] if int(sys.version[0]) < 3: process = subprocess.Popen(arguments, stdout=PIPE) process.wait() @@ -20,7 +21,8 @@ def ffprobe(path): else: return None else: - process = subprocess.run(arguments, stdin=None, stdout=PIPE, stderr=PIPE) + process = subprocess.run(arguments, stdin=None, + stdout=PIPE, stderr=PIPE) if process.returncode == 0: output_str = process.stdout.decode('utf-8') return json.loads(output_str)