[Epydoc-commits] SF.net SVN: epydoc: [1171] trunk/epydoc/src/epydoc/markup/epytext.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-05 17:12:22
|
Revision: 1171 Author: edloper Date: 2006-04-05 10:12:13 -0700 (Wed, 05 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1171&view=rev Log Message: ----------- - for callgraphs, if no doc is specified, then use the context. Modified Paths: -------------- trunk/epydoc/src/epydoc/markup/epytext.py Modified: trunk/epydoc/src/epydoc/markup/epytext.py =================================================================== --- trunk/epydoc/src/epydoc/markup/epytext.py 2006-04-05 17:11:38 UTC (rev 1170) +++ trunk/epydoc/src/epydoc/markup/epytext.py 2006-04-05 17:12:13 UTC (rev 1171) @@ -1873,8 +1873,11 @@ return import_graph(modules, docindex, linker, context) elif graph_type == 'callgraph': - docs = [docindex.find(name, context) for name in graph_args] - docs = [doc for doc in docs if doc is not None] + if graph_args: + docs = [docindex.find(name, context) for name in graph_args] + docs = [doc for doc in docs if doc is not None] + else: + docs = [context] return call_graph(docs, docindex, linker, context) else: log.warning("Unknown graph type %s" % graph_type) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |