diff --git a/src/diana/sgfparser/node.py b/src/diana/sgfparser/node.py --- a/src/diana/sgfparser/node.py +++ b/src/diana/sgfparser/node.py @@ -86,8 +86,8 @@ class Node: return res return None - ## Create a copy of the Node, with the same parent and deep copied properties, no copied children. def copy(self): + """Create a copy of the Node, with the same parent and deep copied properties, no copied children.""" res = Node() res.properties = {k: v.copy() for (k, v) in self.properties.items()} res.parent = self.parent @@ -99,8 +99,8 @@ class Node: else: return default - ## Returns textual representation of the Node itself, but disregards its children. def __str__(self): + """Returns textual representation of the Node itself, but disregards its children.""" return ";" + "".join(str(p) for p in self.properties.values()) def export(self):