mirror of
https://github.com/django/django.git
synced 2025-08-31 07:47:37 +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:
parent
50c1d8f24b
commit
560b4207b1
24 changed files with 72 additions and 72 deletions
|
@ -43,7 +43,7 @@ class TestUtilsHtml(TestCase):
|
|||
|
||||
def test_format_html(self):
|
||||
self.assertEqual(
|
||||
html.format_html("{0} {1} {third} {fourth}",
|
||||
html.format_html("{} {} {third} {fourth}",
|
||||
"< Dangerous >",
|
||||
html.mark_safe("<b>safe</b>"),
|
||||
third="< dangerous again",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue