use collections.abc.Iterable

This commit is contained in:
Ben Greiner 2022-01-16 12:24:14 +01:00 committed by GitHub
parent f3079726fa
commit 74862fb29f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -137,7 +137,7 @@ def _get_output_args(node, stream_name_map):
if 'video_size' in kwargs:
video_size = kwargs.pop('video_size')
if not isinstance(video_size, basestring) and isinstance(
video_size, collections.Iterable
video_size, collections.abc.Iterable
):
video_size = '{}x{}'.format(video_size[0], video_size[1])
args += ['-video_size', video_size]