aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/compat/functools.py
diff options
context:
space:
mode:
authorbashonly <88596187+bashonly@users.noreply.github.com>2023-11-16 12:39:00 -0600
committerGitHub <noreply@github.com>2023-11-16 18:39:00 +0000
commitf4b95acafcd69a50040730dfdf732e797278fdcc (patch)
treea0fd57492a2e4b4055b776e76d14556ce1a30852 /yt_dlp/compat/functools.py
parentfe6c82ccff6338d97711204162731a8a6741c9b4 (diff)
Remove Python 3.7 support (#8361)
Closes #7803 Authored by: bashonly
Diffstat (limited to 'yt_dlp/compat/functools.py')
-rw-r--r--yt_dlp/compat/functools.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/yt_dlp/compat/functools.py b/yt_dlp/compat/functools.py
index ec003ea90..36c983642 100644
--- a/yt_dlp/compat/functools.py
+++ b/yt_dlp/compat/functools.py
@@ -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__)