Merge 105060 from branch 2.12: Fix HelpSys to work with...

Merge 105060 from branch 2.12: Fix HelpSys to work with zope.interface.Interface as it did before the deprecated methods of scarecrow Interface.Interface were removed.
parent 060f1457
......@@ -48,8 +48,8 @@ class APIHelpTopic(HelpTopic):
if type(v)==types.ClassType:
# A class.
self.apis.append(APIDoc(v, 0))
elif (hasattr(v, 'isImplementedByInstancesOf')):
# A scarecrow interface.
elif (hasattr(v, 'implementedBy')):
# A zope.interface.Interface.
self.apis.append(APIDoc(v, 1))
elif type(v)==types.FunctionType:
# A function
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment