1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-10-05 14:24:39 -04:00

[cleanup] Misc

Closes #5541
This commit is contained in:
pukkandan
2022-11-16 06:27:43 +05:30
parent a4894d3e25
commit 6368e2e639
75 changed files with 194 additions and 156 deletions

View File

@@ -5839,7 +5839,7 @@ def cached_method(f):
bound_args.apply_defaults()
key = tuple(bound_args.arguments.values())[1:]
cache = vars(self).setdefault('__cached_method__cache', {}).setdefault(f.__name__, {})
cache = vars(self).setdefault('_cached_method__cache', {}).setdefault(f.__name__, {})
if key not in cache:
cache[key] = f(self, *args, **kwargs)
return cache[key]