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/template | |
| parent | d1df395f3ae768e495a105db2f85352c44ba1c28 (diff) | |
Fixed E125 pep8 warnings
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/defaultfilters.py | 2 | ||||
| -rw-r--r-- | django/template/loader_tags.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index 1bd54404b3..6dfff99bfc 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -40,7 +40,7 @@ def stringfilter(func): args = list(args) args[0] = force_text(args[0]) if (isinstance(args[0], SafeData) and - getattr(_dec._decorated_function, 'is_safe', False)): + getattr(_dec._decorated_function, 'is_safe', False)): return mark_safe(func(*args, **kwargs)) return func(*args, **kwargs) diff --git a/django/template/loader_tags.py b/django/template/loader_tags.py index 740b503cc5..31ba3475d3 100644 --- a/django/template/loader_tags.py +++ b/django/template/loader_tags.py @@ -70,7 +70,7 @@ class BlockNode(Node): def super(self): render_context = self.context.render_context if (BLOCK_CONTEXT_KEY in render_context and - render_context[BLOCK_CONTEXT_KEY].get_block(self.name) is not None): + render_context[BLOCK_CONTEXT_KEY].get_block(self.name) is not None): return mark_safe(self.render(self.context)) return '' |
