summaryrefslogtreecommitdiff
path: root/django/template/base.py
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-05-17 16:33:36 +0200
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-05-17 18:08:58 +0200
commit9c487b5974ee7e7f196079611d7352364e8873ed (patch)
treeefc6ffa38da07b4302e145c33047cf2c41da105a /django/template/base.py
parentb1bfd9630ef049070b0cd6ae215470d3d1facd40 (diff)
downloaddjango-9c487b5974ee7e7f196079611d7352364e8873ed.tar.gz
Replaced an antiquated pattern.
Thanks Lennart Regebro for pointing it out.
Diffstat (limited to 'django/template/base.py')
-rw-r--r--django/template/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/template/base.py b/django/template/base.py
index c5bddaf63e..dc6b0c366c 100644
--- a/django/template/base.py
+++ b/django/template/base.py
@@ -641,7 +641,7 @@ class FilterExpression(object):
(name, len(nondefs), plen))
# Defaults can be overridden.
- defaults = defaults and list(defaults) or []
+ defaults = list(defaults) if defaults else []
try:
for parg in provided:
defaults.pop(0)