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/utils/tree.py | |
parent | b1bfd9630ef049070b0cd6ae215470d3d1facd40 (diff) | |
download | django-9c487b5974ee7e7f196079611d7352364e8873ed.tar.gz |
Replaced an antiquated pattern.
Thanks Lennart Regebro for pointing it out.
Diffstat (limited to 'django/utils/tree.py')
-rw-r--r-- | django/utils/tree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/tree.py b/django/utils/tree.py index 4152b4600b..3f93738b4f 100644 --- a/django/utils/tree.py +++ b/django/utils/tree.py @@ -20,7 +20,7 @@ class Node(object): Constructs a new Node. If no connector is given, the default will be used. """ - self.children = children and children[:] or [] + self.children = children[:] if children else [] self.connector = connector or self.default self.negated = negated |