From 5ac33d8399b14b631971071f47c9973c9f462d95 Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Fri, 15 Feb 2013 06:19:00 -0500 Subject: ast: Rename Class.parent to parent_type The eventual model I want to have is that .parent is the "container" of the node. In all the cases where we don't explicitly set the parent, this is the namespace, but having this under one field name would be a big cleanup for the docwriter. https://bugzilla.gnome.org/show_bug.cgi?id=693876 --- giscanner/docwriter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'giscanner/docwriter.py') diff --git a/giscanner/docwriter.py b/giscanner/docwriter.py index 1a149374..763a09d6 100644 --- a/giscanner/docwriter.py +++ b/giscanner/docwriter.py @@ -352,8 +352,8 @@ class DocFormatter(object): def get_class_hierarchy(self, node): parent_chain = [node] - while node.parent: - node = self._transformer.lookup_typenode(node.parent) + while node.parent_type: + node = self._transformer.lookup_typenode(node.parent_type) parent_chain.append(node) parent_chain.reverse() -- cgit v1.2.1