From dcfc8fa9721955dc4fcfb6e5e506be12f74c5b85 Mon Sep 17 00:00:00 2001 From: Ray Ashman Jr Date: Sat, 2 Nov 2013 15:27:47 -0400 Subject: Correct flake8 violation E261 --- django/forms/forms.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'django/forms/forms.py') diff --git a/django/forms/forms.py b/django/forms/forms.py index d9be2cd3f8..ddd51ffaae 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -120,7 +120,7 @@ class BaseForm(object): # Translators: This is the default suffix added to form field labels self.label_suffix = label_suffix if label_suffix is not None else _(':') self.empty_permitted = empty_permitted - self._errors = None # Stores the errors after clean() has been called. + self._errors = None # Stores the errors after clean() has been called. self._changed_data = None # The base_fields class attribute is the *class-wide* definition of @@ -176,7 +176,7 @@ class BaseForm(object): def _html_output(self, normal_row, error_row, row_ender, help_text_html, errors_on_separate_row): "Helper function for outputting HTML. Used by as_table(), as_ul(), as_p()." - top_errors = self.non_field_errors() # Errors that should be displayed above all fields. + top_errors = self.non_field_errors() # Errors that should be displayed above all fields. output, hidden_fields = [], [] for name, field in self.fields.items(): @@ -223,7 +223,7 @@ class BaseForm(object): if top_errors: output.insert(0, error_row % force_text(top_errors)) - if hidden_fields: # Insert any hidden fields in the last row. + if hidden_fields: # Insert any hidden fields in the last row. str_hidden = ''.join(hidden_fields) if output: last_row = output[-1] @@ -295,7 +295,7 @@ class BaseForm(object): self.cleaned_data. """ self._errors = ErrorDict() - if not self.is_bound: # Stop further processing. + if not self.is_bound: # Stop further processing. return self.cleaned_data = {} # If the form is permitted to be empty, and none of the form data has -- cgit v1.3