From cb89cfc14b51f886f292b1e0bcaeede4a72cb741 Mon Sep 17 00:00:00 2001 From: xtkoba <69125751+xtkoba@users.noreply.github.com> Date: Sat, 24 Jul 2021 00:02:48 +0900 Subject: [test] Add Python 3.10 (#480) Authored-by: pukkandan, xtkoba --- yt_dlp/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'yt_dlp/utils.py') diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 4d12c0a8e..4ff53573f 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -3964,7 +3964,7 @@ def detect_exe_version(output, version_re=None, unrecognized='present'): return unrecognized -class LazyList(collections.Sequence): +class LazyList(collections.abc.Sequence): ''' Lazy immutable list from an iterable Note that slices of a LazyList are lists and not LazyList''' @@ -6313,4 +6313,4 @@ def traverse_dict(dictn, keys, casesense=True): def variadic(x, allowed_types=(str, bytes)): - return x if isinstance(x, collections.Iterable) and not isinstance(x, allowed_types) else (x,) + return x if isinstance(x, collections.abc.Iterable) and not isinstance(x, allowed_types) else (x,) -- cgit v1.2.3