diff options
Diffstat (limited to 'cachetools/ttl.py')
-rw-r--r-- | cachetools/ttl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/cachetools/ttl.py b/cachetools/ttl.py index 72f6d52..eef8877 100644 --- a/cachetools/ttl.py +++ b/cachetools/ttl.py @@ -4,7 +4,7 @@ import time from .cache import Cache -class _Link(object): +class _Link: __slots__ = ("key", "expire", "next", "prev") @@ -22,7 +22,7 @@ class _Link(object): next.prev = prev -class _Timer(object): +class _Timer: def __init__(self, timer): self.__timer = timer self.__nesting = 0 @@ -143,7 +143,7 @@ class TTLCache(Cache): def currsize(self): with self.__timer as time: self.expire(time) - return super(TTLCache, self).currsize + return super().currsize @property def timer(self): |