mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Removed redundant numbered parameters from str.format().
Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}".
This commit is contained in:
committed by
Tim Graham
parent
50c1d8f24b
commit
560b4207b1
@@ -105,7 +105,7 @@ def format_html_join(sep, format_string, args_generator):
|
||||
|
||||
Example:
|
||||
|
||||
format_html_join('\n', "<li>{0} {1}</li>", ((u.first_name, u.last_name)
|
||||
format_html_join('\n', "<li>{} {}</li>", ((u.first_name, u.last_name)
|
||||
for u in users))
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user