summaryrefslogtreecommitdiff
path: root/sphinx/pycode
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-03-03 08:55:34 +0100
committerGeorg Brandl <georg@python.org>2009-03-03 08:55:34 +0100
commit4fdcb75be0417e2c9085a69454ff02af0784114e (patch)
tree8758c1262dc96f2253ea8807ac4b00d651288681 /sphinx/pycode
parentebf6bdb560333a71df29222af86929adb855be00 (diff)
downloadsphinx-4fdcb75be0417e2c9085a69454ff02af0784114e.tar.gz
Add default parent attribute to Node classes.
Diffstat (limited to 'sphinx/pycode')
-rw-r--r--sphinx/pycode/nodes.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/sphinx/pycode/nodes.py b/sphinx/pycode/nodes.py
index efdf8f06..f8f57740 100644
--- a/sphinx/pycode/nodes.py
+++ b/sphinx/pycode/nodes.py
@@ -14,6 +14,7 @@ class BaseNode(object):
"""
Node superclass for both terminal and nonterminal nodes.
"""
+ parent = None
def _eq(self, other):
raise NotImplementedError