summaryrefslogtreecommitdiff
path: root/django/urls/utils.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2017-01-18 21:30:21 +0100
committerTim Graham <timograham@gmail.com>2017-01-18 21:42:40 -0500
commit3cc5f01d9bd52930cec3c08d6ec7e19d0c2a6489 (patch)
treefa14ed86804a78c91cf62dfeba328cdf6d43359e /django/urls/utils.py
parent2b281cc35ed9d997614ca3c416928d7fabfef1ad (diff)
Refs #23919 -- Stopped using django.utils.lru_cache().
Diffstat (limited to 'django/urls/utils.py')
-rw-r--r--django/urls/utils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/django/urls/utils.py b/django/urls/utils.py
index 3cf5439e77..e59ab9fdbd 100644
--- a/django/urls/utils.py
+++ b/django/urls/utils.py
@@ -1,11 +1,11 @@
+import functools
from importlib import import_module
from django.core.exceptions import ViewDoesNotExist
-from django.utils import lru_cache
from django.utils.module_loading import module_has_submodule
-@lru_cache.lru_cache(maxsize=None)
+@functools.lru_cache(maxsize=None)
def get_callable(lookup_view):
"""
Return a callable corresponding to lookup_view.