summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/urls/converters.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/django/urls/converters.py b/django/urls/converters.py
index cc22f33df4..bb8478e32f 100644
--- a/django/urls/converters.py
+++ b/django/urls/converters.py
@@ -1,6 +1,5 @@
import uuid
-
-from django.utils import lru_cache
+from functools import lru_cache
class IntConverter:
@@ -58,7 +57,7 @@ def register_converter(converter, type_name):
get_converters.cache_clear()
-@lru_cache.lru_cache(maxsize=None)
+@lru_cache(maxsize=None)
def get_converters():
return {**DEFAULT_CONVERTERS, **REGISTERED_CONVERTERS}