web/lib/django/utils/tree.py
changeset 29 cc9b7e14412b
parent 0 0d40e90630ef
equal deleted inserted replaced
28:b758351d191f 29:cc9b7e14412b
     1 """
     1 """
     2 A class for storing a tree graph. Primarily used for filter constructs in the
     2 A class for storing a tree graph. Primarily used for filter constructs in the
     3 ORM.
     3 ORM.
     4 """
     4 """
     5 
     5 
     6 from copy import deepcopy
     6 from django.utils.copycompat import deepcopy
     7 
     7 
     8 class Node(object):
     8 class Node(object):
     9     """
     9     """
    10     A single internal node in the tree graph. A Node should be viewed as a
    10     A single internal node in the tree graph. A Node should be viewed as a
    11     connection (the root) with the children being either leaf nodes or other
    11     connection (the root) with the children being either leaf nodes or other