summaryrefslogtreecommitdiff
path: root/django/forms/forms.py
diff options
context:
space:
mode:
authorRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 15:27:47 -0400
committerRay Ashman Jr <ray.ashman.jr@gmail.com>2013-11-02 15:27:47 -0400
commitdcfc8fa9721955dc4fcfb6e5e506be12f74c5b85 (patch)
treedb0ff9bc296501a9f8eb5f7b44e3b49652103992 /django/forms/forms.py
parentb44d42be6d05e88071844b64c6519223cdd2fa80 (diff)
Correct flake8 violation E261
Diffstat (limited to 'django/forms/forms.py')
-rw-r--r--django/forms/forms.py8
1 files changed, 4 insertions, 4 deletions
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