summaryrefslogtreecommitdiff
path: root/django/urls
diff options
context:
space:
mode:
Diffstat (limited to 'django/urls')
-rw-r--r--django/urls/conf.py1
-rw-r--r--django/urls/resolvers.py9
2 files changed, 7 insertions, 3 deletions
diff --git a/django/urls/conf.py b/django/urls/conf.py
index 40708028a3..bb61063d77 100644
--- a/django/urls/conf.py
+++ b/django/urls/conf.py
@@ -1,4 +1,5 @@
"""Functions for use in URLsconfs."""
+
from functools import partial
from importlib import import_module
diff --git a/django/urls/resolvers.py b/django/urls/resolvers.py
index 89ae18694c..3607c84228 100644
--- a/django/urls/resolvers.py
+++ b/django/urls/resolvers.py
@@ -5,6 +5,7 @@ URLResolver is the main class here. Its resolve() method takes a URL (as
a string) and returns a ResolverMatch object which provides access to all
attributes of the resolved URL match.
"""
+
import functools
import inspect
import re
@@ -91,9 +92,11 @@ class ResolverMatch:
self.app_names,
self.namespaces,
self.route,
- f", captured_kwargs={self.captured_kwargs!r}"
- if self.captured_kwargs
- else "",
+ (
+ f", captured_kwargs={self.captured_kwargs!r}"
+ if self.captured_kwargs
+ else ""
+ ),
f", extra_kwargs={self.extra_kwargs!r}" if self.extra_kwargs else "",
)
)