summaryrefslogtreecommitdiffstats
path: root/glances/globals.py
diff options
context:
space:
mode:
Diffstat (limited to 'glances/globals.py')
-rw-r--r--glances/globals.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/glances/globals.py b/glances/globals.py
index 46f47f7b..315d0d57 100644
--- a/glances/globals.py
+++ b/glances/globals.py
@@ -413,8 +413,8 @@ def folder_size(path, errno=0):
def weak_lru_cache(maxsize=128, typed=False):
"""LRU Cache decorator that keeps a weak reference to self
Source: https://stackoverflow.com/a/55990799"""
- def wrapper(func):
+ def wrapper(func):
@functools.lru_cache(maxsize, typed)
def _func(_self, *args, **kwargs):
return func(_self(), *args, **kwargs)