1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-12-16 22:25:40 +07:00

Remove Python 3.8 support (#11321)

Closes #10086
Authored by: bashonly
This commit is contained in:
bashonly
2024-10-23 06:33:50 +00:00
committed by GitHub
parent dd2e244469
commit d784464399
14 changed files with 120 additions and 75 deletions

View File

@@ -57,7 +57,7 @@ def __getattr__(attr):
callback(attr)
return ret
@functools.lru_cache(maxsize=None)
@functools.cache
def from_child(attr):
nonlocal child
if attr not in allowed_attributes:

View File

@@ -5,8 +5,3 @@
passthrough_module(__name__, 'functools')
del passthrough_module
try:
_ = cache # >= 3.9
except NameError:
cache = lru_cache(maxsize=None)