1
0
Fork 0

[cleanup] Misc

Closes #5541
This commit is contained in:
pukkandan 2022-11-16 06:27:43 +05:30
commit 6368e2e639
No known key found for this signature in database
GPG key ID: 7EEE9E1E817D0A39
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]