[Epydoc-commits] SF.net SVN: epydoc: [1468] trunk/epydoc/src/epydoc/docstringparser.py
Brought to you by:
edloper
|
From: <ed...@us...> - 2007-02-13 08:22:29
|
Revision: 1468
http://svn.sourceforge.net/epydoc/?rev=1468&view=rev
Author: edloper
Date: 2007-02-13 00:22:28 -0800 (Tue, 13 Feb 2007)
Log Message:
-----------
- Warn if @type is used in a bad context.
Modified Paths:
--------------
trunk/epydoc/src/epydoc/docstringparser.py
Modified: trunk/epydoc/src/epydoc/docstringparser.py
===================================================================
--- trunk/epydoc/src/epydoc/docstringparser.py 2007-02-13 08:21:20 UTC (rev 1467)
+++ trunk/epydoc/src/epydoc/docstringparser.py 2007-02-13 08:22:28 UTC (rev 1468)
@@ -641,6 +641,9 @@
if arg in api_doc.arg_types:
raise ValueError(REDEFINED % ('type for '+arg))
api_doc.arg_types[arg] = descr
+
+ else:
+ raise ValueError(BAD_CONTEXT % tag)
def process_var_field(api_doc, docindex, tag, arg, descr):
_check(api_doc, tag, arg, context=ModuleDoc, expect_arg=True)
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|