From f4b95acafcd69a50040730dfdf732e797278fdcc Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Thu, 16 Nov 2023 12:39:00 -0600 Subject: Remove Python 3.7 support (#8361) Closes #7803 Authored by: bashonly --- yt_dlp/compat/functools.py | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'yt_dlp/compat/functools.py') 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__) -- cgit v1.2.3