mirror of
https://github.com/django/django.git
synced 2025-10-26 07:06:08 +00:00
Replaced an antiquated pattern.
Thanks Lennart Regebro for pointing it out.
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user