[Epydoc-commits] SF.net SVN: epydoc: [1163] trunk/epydoc/src/epydoc/docstringparser.py
Brought to you by:
edloper
From: <ed...@us...> - 2006-04-05 02:28:52
|
Revision: 1163 Author: edloper Date: 2006-04-04 19:28:48 -0700 (Tue, 04 Apr 2006) ViewCVS: http://svn.sourceforge.net/epydoc/?rev=1163&view=rev Log Message: ----------- - Fixed bug introduced by previous checkin Modified Paths: -------------- trunk/epydoc/src/epydoc/docstringparser.py Modified: trunk/epydoc/src/epydoc/docstringparser.py =================================================================== --- trunk/epydoc/src/epydoc/docstringparser.py 2006-04-05 01:58:40 UTC (rev 1162) +++ trunk/epydoc/src/epydoc/docstringparser.py 2006-04-05 02:28:48 UTC (rev 1163) @@ -251,7 +251,7 @@ # filename of its containing module. name = api_doc.canonical_name module = api_doc.defining_module - if module is not None and module.filename not in (None, UNKNOWN): + if module != UNKNOWN and module.filename not in (None, UNKNOWN): try: filename = py_src_filename(module.filename) except: filename = module.filename else: @@ -629,7 +629,7 @@ # Find the module that defines api_doc. module = api_doc.defining_module # Look up its docformat. - if module is not None and module.docformat not in (None, UNKNOWN): + if module != UNKNOWN and module.docformat not in (None, UNKNOWN): docformat = module.docformat else: docformat = DEFAULT_DOCFORMAT This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |