diff options
| author | Tim Graham <timograham@gmail.com> | 2013-10-22 09:31:43 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-10-22 09:51:39 -0400 |
| commit | 1597503a017a9ced422a81d314cb4097d53c3dfd (patch) | |
| tree | e5883611fb6d928482d24db1c4d796126250fef4 /django/template | |
| parent | 0d0f4f020afe516f23fd2305f13ff0a6a539b344 (diff) | |
Fixed E221 pep8 warnings.
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/defaultfilters.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index a110ad5bb9..b45321e445 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -194,10 +194,10 @@ def linenumbers(value, autoescape=None): width = six.text_type(len(six.text_type(len(lines)))) if not autoescape or isinstance(value, SafeData): for i, line in enumerate(lines): - lines[i] = ("%0" + width + "d. %s") % (i + 1, line) + lines[i] = ("%0" + width + "d. %s") % (i + 1, line) else: for i, line in enumerate(lines): - lines[i] = ("%0" + width + "d. %s") % (i + 1, escape(line)) + lines[i] = ("%0" + width + "d. %s") % (i + 1, escape(line)) return mark_safe('\n'.join(lines)) @register.filter(is_safe=True) |
