diff options
author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-05-17 16:33:36 +0200 |
---|---|---|
committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-05-17 18:08:58 +0200 |
commit | 9c487b5974ee7e7f196079611d7352364e8873ed (patch) | |
tree | efc6ffa38da07b4302e145c33047cf2c41da105a /django/template/base.py | |
parent | b1bfd9630ef049070b0cd6ae215470d3d1facd40 (diff) | |
download | django-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.py | 2 |
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) |