Ryan Barrett 2025-06-10 12:02:38 -07:00
rodzic 09b4a5cdfb
commit d93e12d765
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 6BE31FDF4776E9D4
1 zmienionych plików z 1 dodań i 2 usunięć

Wyświetl plik

@ -78,8 +78,7 @@ def memoize(expire=None, key=None, write=True, version=MEMOIZE_VERSION):
Bumping this version can have the same effect as clearing the cache for
just the affected function.
"""
if expire:
expire = int(expire.total_seconds())
expire = int(expire.total_seconds()) if expire else 0
def decorator(fn):
@functools.wraps(fn)