[Epydoc-commits] SF.net SVN: epydoc: [1261] trunk/epydoc/src/epydoc/docparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-08-21 09:48:21
|
Revision: 1261 Author: edloper Date: 2006-08-21 02:48:17 -0700 (Mon, 21 Aug 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1261&view=rev Log Message: ----------- Fixed sf bug "[ 1504812 ] AttributeError: 'GenericValueDoc' object has no attribute ..." (There was a bug in the code that handled shadowing of modules by variables in docparser) Modified Paths: -------------- trunk/epydoc/src/epydoc/docparser.py Modified: trunk/epydoc/src/epydoc/docparser.py =================================================================== --- trunk/epydoc/src/epydoc/docparser.py 2006-08-21 09:40:18 UTC (rev 1260) +++ trunk/epydoc/src/epydoc/docparser.py 2006-08-21 09:48:17 UTC (rev 1261) @@ -1971,9 +1971,9 @@ # If so, then add a "'" to the end of its canonical name, to # distinguish it from the variable. if package_doc is not None and name in package_doc.variables: - valdoc = package_doc.variables[name].value - if (valdoc not in (None, UNKNOWN) and - valdoc.imported_from != dotted_name): + vardoc = package_doc.variables[name] + if (vardoc.value not in (None, UNKNOWN) and + vardoc.imported_from != dotted_name): log.warning("Module %s might be shadowed by a variable with " "the same name." % dotted_name) dotted_name = DottedName(str(dotted_name)+"'") This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |