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): ...@@ -48,8 +48,8 @@ class APIHelpTopic(HelpTopic):
if type(v)==types.ClassType: if type(v)==types.ClassType:
# A class. # A class.
self.apis.append(APIDoc(v, 0)) self.apis.append(APIDoc(v, 0))
elif (hasattr(v, 'isImplementedByInstancesOf')): elif (hasattr(v, 'implementedBy')):
# A scarecrow interface. # A zope.interface.Interface.
self.apis.append(APIDoc(v, 1)) self.apis.append(APIDoc(v, 1))
elif type(v)==types.FunctionType: elif type(v)==types.FunctionType:
# A function # 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