aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pomu/util/cache.py')
-rw-r--r--pomu/util/cache.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/pomu/util/cache.py b/pomu/util/cache.py
index 93502c5..3419a4b 100644
--- a/pomu/util/cache.py
+++ b/pomu/util/cache.py
@@ -7,6 +7,7 @@ class cached():
"""
def __init__(self, fun):
self.fun = fun
+ self.__name__ = fun.__name__
def __call__(self, *args):
if not hasattr(self, 'retval'):
self.retval = self.fun(*args).unwrap()