From 560b4207b1490a7d0cbf70cfbeba7daf2082e5be Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Thu, 27 Nov 2014 02:41:27 +0200 Subject: Removed redundant numbered parameters from str.format(). Since Python 2.7 and 3.1, "{0} {1}" is equivalent to "{} {}". --- docs/intro/contributing.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs/intro') diff --git a/docs/intro/contributing.txt b/docs/intro/contributing.txt index b1fb7b0ef6..d305a8bb91 100644 --- a/docs/intro/contributing.txt +++ b/docs/intro/contributing.txt @@ -325,7 +325,7 @@ the following ``render`` method after the existing ``__init__`` method:: value = force_text(self._format_value(value)) final_attrs = {'href': mark_safe(smart_urlquote(value))} html = format_html( - '

{0} {2}
{3} {4}

', + '

{} {}
{} {}

', _('Currently:'), flatatt(final_attrs), value, _('Change:'), html ) @@ -443,7 +443,7 @@ This patch file contains all your changes and should look this: + value = force_text(self._format_value(value)) + final_attrs = {'href': mark_safe(smart_urlquote(value))} + html = format_html( - + '

{0} {2}
{3} {4}

', + + '

{} {}
{} {}

', + _('Currently:'), flatatt(final_attrs), value, + _('Change:'), html + ) -- cgit v1.3