Fix HelpSys to work with zope.interface.Interface as it did before the...

Fix HelpSys to work with zope.interface.Interface as it did before the deprecated methods of scarecrow Interface.Interface were removed.
parent fa090d93
......@@ -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