[Epydoc-commits] SF.net SVN: epydoc: [1776] trunk/epydoc/src/epydoc/docparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-02-24 06:40:25
|
Revision: 1776 http://epydoc.svn.sourceforge.net/epydoc/?rev=1776&view=rev Author: edloper Date: 2008-02-23 22:40:17 -0800 (Sat, 23 Feb 2008) Log Message: ----------- - Removed obsolete guard against adding a class to the subclass list twice (from introspect & parsing) -- the current implementation just chooses the introspect's version of the subclass list over the parse version. Modified Paths: -------------- trunk/epydoc/src/epydoc/docparser.py Modified: trunk/epydoc/src/epydoc/docparser.py =================================================================== --- trunk/epydoc/src/epydoc/docparser.py 2008-02-24 06:09:50 UTC (rev 1775) +++ trunk/epydoc/src/epydoc/docparser.py 2008-02-24 06:40:17 UTC (rev 1776) @@ -1582,17 +1582,7 @@ if class_doc.bases is not UNKNOWN: for basedoc in class_doc.bases: if isinstance(basedoc, ClassDoc): - # This test avoids that a subclass gets listed twice when - # both introspection and parsing. - # [XXX] This check only works because currently parsing is - # always performed just after introspection of the same - # class. A more complete fix shuld be independent from - # calling order; probably the subclasses list should be - # replaced by a ClassDoc set or a {name: ClassDoc} mapping. - if (basedoc.subclasses - and basedoc.subclasses[-1].canonical_name - != class_doc.canonical_name): - basedoc.subclasses.append(class_doc) + basedoc.subclasses.append(class_doc) # If the preceeding comment includes a docstring, then add it. add_docstring_from_comments(class_doc, comments) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |