[Epydoc-commits] SF.net SVN: epydoc: [1589] trunk/epydoc/src/epydoc/docstringparser.py
Brought to you by:
edloper
From: <dva...@us...> - 2007-05-10 17:45:36
|
Revision: 1589 http://svn.sourceforge.net/epydoc/?rev=1589&view=rev Author: dvarrazzo Date: 2007-05-10 10:45:21 -0700 (Thu, 10 May 2007) Log Message: ----------- - A function signature is recognized if arguments with default values are represented with whitespaces before the '=' sign. Modified Paths: -------------- trunk/epydoc/src/epydoc/docstringparser.py Modified: trunk/epydoc/src/epydoc/docstringparser.py =================================================================== --- trunk/epydoc/src/epydoc/docstringparser.py 2007-03-25 13:37:13 UTC (rev 1588) +++ trunk/epydoc/src/epydoc/docstringparser.py 2007-05-10 17:45:21 UTC (rev 1589) @@ -968,8 +968,8 @@ # The function name (must match exactly) [XX] not anymore! r'(?P<func>\w+)' + # The parameters - r'\((?P<params>(\s*\[?\s*\*{0,2}[\w\-\.]+(=.+?)?'+ - r'(\s*\[?\s*,\s*\]?\s*\*{0,2}[\w\-\.]+(=.+?)?)*\]*)?)\s*\)' + + r'\((?P<params>(\s*\[?\s*\*{0,2}[\w\-\.]+(\s*=.+?)?'+ + r'(\s*\[?\s*,\s*\]?\s*\*{0,2}[\w\-\.]+(\s*=.+?)?)*\]*)?)\s*\)' + # The return value (optional) r'(\s*(->)\s*(?P<return>\S.*?))?'+ # The end marker This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |