diff options
author | xtkoba <69125751+xtkoba@users.noreply.github.com> | 2021-07-24 00:02:48 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 20:32:48 +0530 |
commit | cb89cfc14b51f886f292b1e0bcaeede4a72cb741 (patch) | |
tree | c821e2761cd9064d6a90164529f73f68665dd3df | |
parent | 060ac76257a8c1f7370a8a571821c1d73377701f (diff) | |
download | hypervideo-pre-cb89cfc14b51f886f292b1e0bcaeede4a72cb741.tar.lz hypervideo-pre-cb89cfc14b51f886f292b1e0bcaeede4a72cb741.tar.xz hypervideo-pre-cb89cfc14b51f886f292b1e0bcaeede4a72cb741.zip |
[test] Add Python 3.10 (#480)
Authored-by: pukkandan, xtkoba
-rw-r--r-- | .github/workflows/core.yml | 2 | ||||
-rw-r--r-- | .github/workflows/download.yml | 2 | ||||
-rw-r--r-- | yt_dlp/utils.py | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/core.yml b/.github/workflows/core.yml index f2d31c134..4fb65e0c1 100644 --- a/.github/workflows/core.yml +++ b/.github/workflows/core.yml @@ -10,7 +10,7 @@ jobs: matrix: os: [ubuntu-18.04] # py3.9 is in quick-test - python-version: [3.7, 3.8, pypy-3.6, pypy-3.7] + python-version: [3.7, 3.8, 3.10-dev, pypy-3.6, pypy-3.7] run-tests-ext: [sh] include: # atleast one of the tests must be in windows diff --git a/.github/workflows/download.yml b/.github/workflows/download.yml index 3b63fdd35..dd242fa56 100644 --- a/.github/workflows/download.yml +++ b/.github/workflows/download.yml @@ -9,7 +9,7 @@ jobs: fail-fast: true matrix: os: [ubuntu-18.04] - python-version: [3.7, 3.8, 3.9, pypy-3.6, pypy-3.7] + python-version: [3.7, 3.8, 3.9, 3.10-dev, pypy-3.6, pypy-3.7] run-tests-ext: [sh] include: - os: windows-latest 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,) |