From c6172ce37f0aebdbca79a2db56b69a8cee090fdc Mon Sep 17 00:00:00 2001 From: Mike Lang Date: Tue, 12 Nov 2019 00:37:47 -0800 Subject: [PATCH] smart cut: More typos --- common/common/segments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/common/segments.py b/common/common/segments.py index 528ba0d..6f952eb 100644 --- a/common/common/segments.py +++ b/common/common/segments.py @@ -527,7 +527,7 @@ def smart_cut_segments(segments, start, end): input_feeder.kill() for proc in procs: if proc.poll() is not None: - for action in [proc.kill, proc.stdout.close] + [proc.stdin.close if proc is concat_proc else []]: + for action in [proc.kill, proc.stdout.close] + ([proc.stdin.close] if proc is concat_proc else []): try: action() except (OSError, IOError):