summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorSergey Fedoseev <fedoseev.sergey@gmail.com>2018-09-28 18:57:12 +0500
committerTim Graham <timograham@gmail.com>2018-09-28 09:57:12 -0400
commit8ef8bc0f64c463684268a7c55f3d3da4de066c0d (patch)
tree9c3ab782c6382bdbc91363d0dd5513df83381903 /django/utils/html.py
parent4fc8fb7ddaad495d45d53df58b2d13115857b3c7 (diff)
Refs #28909 -- Simplifed code using unpacking generalizations.
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index b230c5faec..e68e25443f 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -133,8 +133,9 @@ def format_html_join(sep, format_string, args_generator):
for u in users))
"""
return mark_safe(conditional_escape(sep).join(
- format_html(format_string, *tuple(args))
- for args in args_generator))
+ format_html(format_string, *args)
+ for args in args_generator
+ ))
@keep_lazy_text