1
0
mirror of https://github.com/django/django.git synced 2025-02-08 16:35:17 +00:00

Removed obsolete docstring from WhereNode.clone().

Node.subtree_parents was removed in
d3f00bd5706b35961390d3814dd7e322ead3a9a3. That commit also added
Q.clone() which was identical to WhereNode.clone(), but lacked the
docstring. Q.clone() was later removed in
b454e2cbc95eb26fa0c32b54c53ae24fc40e8c02.
This commit is contained in:
Nick Pope 2021-09-20 23:22:17 +01:00 committed by Mariusz Felisiak
parent 769d7cce4a
commit 4f8bc75bc3

View File

@ -171,11 +171,6 @@ class WhereNode(tree.Node):
self.children[pos] = child.relabeled_clone(change_map)
def clone(self):
"""
Create a clone of the tree. Must only be called on root nodes (nodes
with empty subtree_parents). Childs must be either (Constraint, lookup,
value) tuples, or objects supporting .clone().
"""
clone = self.__class__._new_instance(
children=None,
connector=self.connector,