diff --git a/osctiny/extensions/issues.py b/osctiny/extensions/issues.py index 938dadd..b09716f 100644 --- a/osctiny/extensions/issues.py +++ b/osctiny/extensions/issues.py @@ -2,11 +2,11 @@ Issues extension ---------------- """ +from functools import lru_cache import os from urllib.parse import urljoin -from ..utils.backports import lru_cache from ..utils.base import ExtensionBase diff --git a/osctiny/extensions/origin.py b/osctiny/extensions/origin.py index 10d7f2e..ccc0254 100644 --- a/osctiny/extensions/origin.py +++ b/osctiny/extensions/origin.py @@ -22,12 +22,13 @@ """ # pylint: disable=too-many-ancestors,ungrouped-imports from collections import defaultdict +from functools import lru_cache import re from warnings import warn from yaml import load -from ..utils.backports import lru_cache, cached_property +from ..utils.backports import cached_property from ..utils.base import ExtensionBase from ..utils.mapping import LazyOscMappable diff --git a/osctiny/utils/backports.py b/osctiny/utils/backports.py index 5a024dc..00b987b 100644 --- a/osctiny/utils/backports.py +++ b/osctiny/utils/backports.py @@ -3,21 +3,11 @@ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ .. versionadded:: 0.3.0 -""" -try: - # pylint: disable=unused-import - from functools import lru_cache -except ImportError: - # Whoever had the grandiose idea to backport this to Python2? - # pylint: disable=unused-argument - def lru_cache(*args, **kwargs): - """Dummy wrapper""" - def wrapper(fun): - return fun - - return wrapper +.. versionchanged:: 0.8.0 + Removed function ``lru_cache`` +""" try: # pylint: disable=unused-import from functools import cached_property