[Epydoc-commits] SF.net SVN: epydoc: [1689] trunk/epydoc/src/epydoc/docstringparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2008-01-30 17:01:08
|
Revision: 1689 http://epydoc.svn.sourceforge.net/epydoc/?rev=1689&view=rev Author: edloper Date: 2008-01-30 09:01:02 -0800 (Wed, 30 Jan 2008) Log Message: ----------- - When hiding variables with @undocumented, also remove them from sort_spec. Modified Paths: -------------- trunk/epydoc/src/epydoc/docstringparser.py Modified: trunk/epydoc/src/epydoc/docstringparser.py =================================================================== --- trunk/epydoc/src/epydoc/docstringparser.py 2008-01-30 03:59:27 UTC (rev 1688) +++ trunk/epydoc/src/epydoc/docstringparser.py 2008-01-30 17:01:02 UTC (rev 1689) @@ -671,6 +671,9 @@ if var_name_re.match(var_name): # Remove the variable from `variables`. api_doc.variables.pop(var_name, None) + if api_doc.sort_spec is not UNKNOWN: + try: api_doc.sort_spec.remove(var_name) + except ValueError: pass # For modules, remove any submodules that match var_name_re. if isinstance(api_doc, ModuleDoc): removed = set([m for m in api_doc.submodules This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |