[Epydoc-commits] SF.net SVN: epydoc: [1427] trunk/epydoc/src/epydoc/docintrospecter.py
Brought to you by:
edloper
|
From: <dva...@us...> - 2007-01-29 01:11:50
|
Revision: 1427
http://svn.sourceforge.net/epydoc/?rev=1427&view=rev
Author: dvarrazzo
Date: 2007-01-28 17:11:49 -0800 (Sun, 28 Jan 2007)
Log Message:
-----------
- Fixed signature for `get_canonical_name()`.
Not looking for `UNKNOWN` caused bug while introspecting packages such
as twisted and maybe caused the SF bug #1560974.
Modified Paths:
--------------
trunk/epydoc/src/epydoc/docintrospecter.py
Modified: trunk/epydoc/src/epydoc/docintrospecter.py
===================================================================
--- trunk/epydoc/src/epydoc/docintrospecter.py 2007-01-29 00:14:38 UTC (rev 1426)
+++ trunk/epydoc/src/epydoc/docintrospecter.py 2007-01-29 01:11:49 UTC (rev 1427)
@@ -570,7 +570,7 @@
classes; methods of non-nested classes; and some class methods
of non-nested classes.
- @rtype: L{DottedName} or C{None}
+ @rtype: L{DottedName} or C{UNKNOWN}
"""
if not hasattr(value, '__name__'): return UNKNOWN
@@ -588,12 +588,12 @@
value.im_class is ClassType and
not value.__name__.startswith('<')): # class method.
class_name = get_canonical_name(value.im_self)
- if class_name is None: return UNKNOWN
+ if class_name is UNKNOWN: return UNKNOWN
dotted_name = DottedName(class_name, value.__name__)
elif (inspect.ismethod(value) and
not value.__name__.startswith('<')):
class_name = get_canonical_name(value.im_class)
- if class_name is None: return UNKNOWN
+ if class_name is UNKNOWN: return UNKNOWN
dotted_name = DottedName(class_name, value.__name__)
elif (isinstance(value, FunctionType) and
not value.__name__.startswith('<')):
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|