From 810a202d80b59685bf92c55f16ecd63838050e09 Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Wed, 18 Jul 2012 07:04:07 +0000 Subject: [PATCH] Block object and "sip.*" classes from the inheritance diagrams. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@72132 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- sphinxtools/inheritance.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sphinxtools/inheritance.py b/sphinxtools/inheritance.py index 196b5b4a..8aa14114 100644 --- a/sphinxtools/inheritance.py +++ b/sphinxtools/inheritance.py @@ -62,11 +62,15 @@ class InheritanceDiagram(object): def recurse(cls): nodename, fullname = self.class_name(cls) - + if cls in [object] or nodename.startswith('sip.'): + return + baselist = [] all_classes[cls] = (nodename, fullname, baselist) for base in cls.__bases__: + if base in [object] or self.class_name(base)[0].startswith('sip.'): + continue baselist.append(self.class_name(base)[0]) if base not in all_classes: recurse(base)