[Epydoc-commits] SF.net SVN: epydoc: [1267] trunk/epydoc/src/epydoc/docparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-21 11:01:49
|
Revision: 1267 Author: edloper Date: 2006-08-21 04:01:45 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1267&view=rev Log Message: ----------- - Changed default decorator behavior to TRANSPARENT; and added code to keep track of which decorators have been applied. Modified Paths: -------------- trunk/epydoc/src/epydoc/docparser.py Modified: trunk/epydoc/src/epydoc/docparser.py =================================================================== --- trunk/epydoc/src/epydoc/docparser.py 2006-08-21 11:00:15 UTC (rev 1266) +++ trunk/epydoc/src/epydoc/docparser.py 2006-08-21 11:01:45 UTC (rev 1267) @@ -153,7 +153,7 @@ be parsed, e.g., if it's a builtin.) """ -DEFAULT_DECORATOR_BEHAVIOR = 'opaque' +DEFAULT_DECORATOR_BEHAVIOR = 'transparent' """When C{DocParse} encounters an unknown decorator, what should it do to the documentation of the decorated function? - C{'transparent'}: leave the function's documentation as-is. @@ -1370,6 +1370,7 @@ add_docstring_from_comments(func_doc, comments) # Apply any decorators. + func_doc.decorators = [pp_toktree(deco[1:]) for deco in decorators] decorators.reverse() for decorator in decorators: try: This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |