[Epydoc-commits] SF.net SVN: epydoc: [1650] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
From: <ed...@us...> - 2007-09-26 03:48:08
|
Revision: 1650 http://epydoc.svn.sourceforge.net/epydoc/?rev=1650&view=rev Author: edloper Date: 2007-09-25 20:48:06 -0700 (Tue, 25 Sep 2007) Log Message: ----------- - Added sanity check to make sure that the base containing an inherited var is acutally a ClassDoc Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html.py Modified: trunk/epydoc/src/epydoc/docwriter/html.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html.py 2007-09-25 23:32:59 UTC (rev 1649) +++ trunk/epydoc/src/epydoc/docwriter/html.py 2007-09-26 03:48:06 UTC (rev 1650) @@ -2024,7 +2024,11 @@ for var_doc in var_docs: if var_doc.container != doc: base = var_doc.container - if (base not in self.class_set or + if not isinstance(base, ClassDoc): + # This *should* never happen: + log.warning("%s's container is not a class!" % var_doc) + normal_vars.append(var_doc) + elif (base not in self.class_set or self._inheritance == 'listed'): listed_inh_vars.setdefault(base,[]).append(var_doc) elif self._inheritance == 'grouped': This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |