[Epydoc-commits] SF.net SVN: epydoc: [1667] trunk/epydoc/src/epydoc/docstringparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-01-29 01:47:54
|
Revision: 1667 http://epydoc.svn.sourceforge.net/epydoc/?rev=1667&view=rev Author: edloper Date: 2008-01-28 17:47:51 -0800 (Mon, 28 Jan 2008) Log Message: ----------- Fixed sourceforge bug #1847592 -- The code that looked up user-defined docfields from the enclosing objects was broken. Modified Paths: -------------- trunk/epydoc/src/epydoc/docstringparser.py Modified: trunk/epydoc/src/epydoc/docstringparser.py =================================================================== --- trunk/epydoc/src/epydoc/docstringparser.py 2008-01-29 01:29:53 UTC (rev 1666) +++ trunk/epydoc/src/epydoc/docstringparser.py 2008-01-29 01:47:51 UTC (rev 1667) @@ -602,7 +602,7 @@ docfields += api_doc.extra_docstring_fields # Get any docfields from `api_doc`'s ancestors for i in range(len(api_doc.canonical_name)-1, 0, -1): - ancestor = docindex.get_valdoc(api_doc.canonical_name.container()) + ancestor = docindex.get_valdoc(api_doc.canonical_name[:i]) if ancestor is not None \ and ancestor.extra_docstring_fields not in (None, UNKNOWN): docfields += ancestor.extra_docstring_fields This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |