mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
[py3] Fixed access to dict keys/values/items.
This commit is contained in:
@@ -84,7 +84,7 @@ def format_html(format_string, *args, **kwargs):
|
||||
"""
|
||||
args_safe = map(conditional_escape, args)
|
||||
kwargs_safe = dict([(k, conditional_escape(v)) for (k, v) in
|
||||
kwargs.iteritems()])
|
||||
six.iteritems(kwargs)])
|
||||
return mark_safe(format_string.format(*args_safe, **kwargs_safe))
|
||||
|
||||
def format_html_join(sep, format_string, args_generator):
|
||||
|
||||
Reference in New Issue
Block a user