diff options
| author | Loic Bistuer <loic.bistuer@sixmedia.com> | 2013-12-09 00:20:06 +0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-12-10 15:12:48 -0500 |
| commit | a2814846ca006b4fbf3a893ec52cd9d444b3a3eb (patch) | |
| tree | 780498814e830e2b8ee6ac435575afdc2e8e63f6 /django/forms | |
| parent | 0873200e7f61315ad375061a3dc6d37b514ff985 (diff) | |
Fixed E124 pep8 warnings.
Diffstat (limited to 'django/forms')
| -rw-r--r-- | django/forms/utils.py | 18 | ||||
| -rw-r--r-- | django/forms/widgets.py | 2 |
2 files changed, 9 insertions, 11 deletions
diff --git a/django/forms/utils.py b/django/forms/utils.py index 85297b1a1e..9402f2612e 100644 --- a/django/forms/utils.py +++ b/django/forms/utils.py @@ -52,11 +52,10 @@ class ErrorDict(dict): def as_ul(self): if not self: return '' - return format_html('<ul class="errorlist">{0}</ul>', - format_html_join('', '<li>{0}{1}</li>', - ((k, force_text(v)) - for k, v in self.items()) - )) + return format_html( + '<ul class="errorlist">{0}</ul>', + format_html_join('', '<li>{0}{1}</li>', ((k, force_text(v)) for k, v in self.items())) + ) def as_text(self): return '\n'.join('* %s\n%s' % (k, '\n'.join(' * %s' % force_text(i) for i in v)) for k, v in self.items()) @@ -73,11 +72,10 @@ class ErrorList(list): def as_ul(self): if not self: return '' - return format_html('<ul class="errorlist">{0}</ul>', - format_html_join('', '<li>{0}</li>', - ((force_text(e),) for e in self) - ) - ) + return format_html( + '<ul class="errorlist">{0}</ul>', + format_html_join('', '<li>{0}</li>', ((force_text(e),) for e in self)) + ) def as_text(self): if not self: diff --git a/django/forms/widgets.py b/django/forms/widgets.py index 79f3961138..aeb674d013 100644 --- a/django/forms/widgets.py +++ b/django/forms/widgets.py @@ -72,7 +72,7 @@ class Media(object): return path if prefix is None: if settings.STATIC_URL is None: - # backwards compatibility + # backwards compatibility prefix = settings.MEDIA_URL else: prefix = settings.STATIC_URL |
