Skip to content
Permalink
Browse files
Remove self-reference
  • Loading branch information
Kwpolska committed Dec 18, 2016
1 parent 6027bf5 commit c79164be92e1f0b38994a972ee6478479ce6e23c
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/utils.py
@@ -1760,7 +1760,7 @@ def clone_treenode(treenode, parent=None, acceptor=lambda x: True):
is returned.
"""
# Copy standard TreeNode stuff
node_clone = utils.TreeNode(treenode.name, parent)
node_clone = TreeNode(treenode.name, parent)
node_clone.children = [clone_treenode(node, parent=node_clone, acceptor=acceptor) for node in treenode.children]
node_clone.children = [node for node in node_clone.children if node]
node_clone.indent_levels = treenode.indent_levels

0 comments on commit c79164b

Please sign in to comment.