1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-30 14:15:13 +00:00

Remove Python 3.7 support (#8361)

Closes #7803
Authored by: bashonly
This commit is contained in:
bashonly
2023-11-16 12:39:00 -06:00
committed by GitHub
parent fe6c82ccff
commit f4b95acafc
12 changed files with 100 additions and 94 deletions

View File

@@ -10,17 +10,3 @@ try:
cache # >= 3.9
except NameError:
cache = lru_cache(maxsize=None)
try:
cached_property # >= 3.8
except NameError:
class cached_property:
def __init__(self, func):
update_wrapper(self, func)
self.func = func
def __get__(self, instance, _):
if instance is None:
return self
setattr(instance, self.func.__name__, self.func(instance))
return getattr(instance, self.func.__name__)