From 4fdcb75be0417e2c9085a69454ff02af0784114e Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Tue, 3 Mar 2009 08:55:34 +0100 Subject: Add default parent attribute to Node classes. --- sphinx/pycode/nodes.py | 1 + 1 file changed, 1 insertion(+) (limited to 'sphinx/pycode') 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 -- cgit v1.2.1