Skip to content

Commit c0e75ea

Browse files
committed
Documentation cleanup
--HG-- extra : convert_revision : svn%3Aacbfec75-9323-0410-a652-858a13e371e0/trunk%40415
1 parent 06aac66 commit c0e75ea

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/treebuilders/_base.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class Node(object):
2424
def __init__(self, name):
2525
"""Node representing an item in the tree.
2626
name - The tag name associated with the node
27-
parent - The parent of the current node (or None for the root node)
27+
parent - The parent of the current node (or None for the document node)
2828
value - The value of the current node (applies to text nodes and
2929
comments
3030
attributes - a dict holding name, value pairs for attributes of the node
@@ -52,7 +52,8 @@ def __repr__(self):
5252
return "<%s %s>" % (self.__class__, self.name)
5353

5454
def appendChild(self, node):
55-
"""Insert node as a child of the current node"""
55+
"""Insert node as a child of the current node
56+
"""
5657
raise NotImplementedError
5758

5859
def insertText(self, data, insertBefore=None):
@@ -68,21 +69,24 @@ def insertBefore(self, node, refNode):
6869
raise NotImplementedError
6970

7071
def removeChild(self, node):
71-
"""Remove node from the children of the current node"""
72+
"""Remove node from the children of the current node
73+
"""
7274
raise NotImplementedError
7375

7476
def reparentChildren(self, newParent):
7577
"""Move all the children of the current node to newParent.
7678
This is needed so that trees that don't store text as nodes move the
77-
text in the correct way"""
79+
text in the correct way
80+
"""
7881
#XXX - should this method be made more general?
7982
for child in self.childNodes:
8083
newParent.appendChild(child)
8184
self.childNodes = []
8285

8386
def cloneNode(self):
8487
"""Return a shallow copy of the current node i.e. a node with the same
85-
name and attributes but with no parent or child nodes"""
88+
name and attributes but with no parent or child nodes
89+
"""
8690
raise NotImplementedError
8791

8892

0 commit comments

Comments
 (0)