diff options
| author | Christopher Medrela <chris.medrela@gmail.com> | 2013-11-26 10:43:46 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-11-28 08:50:11 -0500 |
| commit | 7477a4ffde4781f4e84503e66d7f775074089887 (patch) | |
| tree | d3bbeaa6e808deb92c0fb86cf4ae8163539d84b1 /django/views/debug.py | |
| parent | d1df395f3ae768e495a105db2f85352c44ba1c28 (diff) | |
Fixed E125 pep8 warnings
Diffstat (limited to 'django/views/debug.py')
| -rw-r--r-- | django/views/debug.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/views/debug.py b/django/views/debug.py index e3f399ef9d..66453fe2c6 100644 --- a/django/views/debug.py +++ b/django/views/debug.py @@ -189,7 +189,7 @@ class SafeExceptionReporterFilter(ExceptionReporterFilter): sensitive_variables = None while current_frame is not None: if (current_frame.f_code.co_name == 'sensitive_variables_wrapper' - and 'sensitive_variables_wrapper' in current_frame.f_locals): + and 'sensitive_variables_wrapper' in current_frame.f_locals): # The sensitive_variables decorator was used, so we take note # of the sensitive variables' names. wrapper = current_frame.f_locals['sensitive_variables_wrapper'] @@ -218,7 +218,7 @@ class SafeExceptionReporterFilter(ExceptionReporterFilter): cleansed[name] = self.cleanse_special_types(request, value) if (tb_frame.f_code.co_name == 'sensitive_variables_wrapper' - and 'sensitive_variables_wrapper' in tb_frame.f_locals): + and 'sensitive_variables_wrapper' in tb_frame.f_locals): # For good measure, obfuscate the decorated function's arguments in # the sensitive_variables decorator's frame, in case the variables # associated with those arguments were meant to be obfuscated from @@ -287,7 +287,7 @@ class ExceptionReporter(object): 'templates': template_list, }) if (settings.TEMPLATE_DEBUG and - hasattr(self.exc_value, 'django_template_source')): + hasattr(self.exc_value, 'django_template_source')): self.get_template_exception_info() frames = self.get_traceback_frames() |
