Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove self-reference
  • Loading branch information
Kwpolska committed Dec 18, 2016
1 parent 6027bf5 commit c79164b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/utils.py
Expand Up @@ -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
Expand Down

0 comments on commit c79164b

Please sign in to comment.