[Epydoc-commits] SF.net SVN: epydoc: [1277] trunk/epydoc/src/epydoc/docwriter/html.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-21 13:25:19
|
Revision: 1277 Author: edloper Date: 2006-08-21 06:25:16 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1277&view=rev Log Message: ----------- - Treat any modules that begin with '_' as private. Modified Paths: -------------- trunk/epydoc/src/epydoc/docwriter/html.py Modified: trunk/epydoc/src/epydoc/docwriter/html.py =================================================================== --- trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-21 13:09:34 UTC (rev 1276) +++ trunk/epydoc/src/epydoc/docwriter/html.py 2006-08-21 13:25:16 UTC (rev 1277) @@ -3005,9 +3005,15 @@ def _doc_or_ancestor_is_private(self, api_doc): name = api_doc.canonical_name for i in range(len(name), 0, -1): + # Is it (or an ancestor) a private var? var_doc = self.docindex.get_vardoc(name[:i]) if var_doc is not None and var_doc.is_public == False: return True + # Is it (or an ancestor) a private module? + val_doc = self.docindex.get_valdoc(name[:i]) + if (val_doc is not None and isinstance(val_doc, ModuleDoc) and + val_doc.canonical_name[-1].startswith('_')): + return True return False class _HTMLDocstringLinker(epydoc.markup.DocstringLinker): This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |