Skip to content

Commit

Permalink
Merge pull request Taxel#165 from glensc/functools-memoize
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Apr 4, 2021
2 parents 3e6fbe9 + 6e3baf1 commit 410911c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
10 changes: 8 additions & 2 deletions plex_trakt_sync/decorators.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import logging
from contextlib import contextmanager
from plex_trakt_sync.memoize import Memoize as memoize
from plex_trakt_sync.nocache import CacheDisabledDecorator as nocache
from time import time
from plex_trakt_sync.nocache import CacheDisabledDecorator as nocache

try:
from functools import cache as memoize
except ImportError:
# For py<3.9
# https://docs.python.org/3.9/library/functools.html
from functools import lru_cache as memoize


@contextmanager
Expand Down
10 changes: 0 additions & 10 deletions plex_trakt_sync/memoize.py

This file was deleted.

0 comments on commit 410911c

Please sign in to comment.