AssistantEric/APIsManager.py

branch
eric7
changeset 202
75476c0b400d
parent 201
1770e4b702a9
child 204
abe45b434e6c
equal deleted inserted replaced
201:1770e4b702a9 202:75476c0b400d
244 language = module.getType() 244 language = module.getType()
245 if language: 245 if language:
246 from eric7.DocumentationTools.APIGenerator import APIGenerator 246 from eric7.DocumentationTools.APIGenerator import APIGenerator
247 247
248 apiGenerator = APIGenerator(module) 248 apiGenerator = APIGenerator(module)
249 apis = apiGenerator.genAPI(True, "", True) 249 try:
250 apis = apiGenerator.genAPI("", True)
251 except TypeError:
252 # backward compatibility for eric7 < 23.6
253 apis = apiGenerator.genAPI(True, "", True)
250 if os.path.basename(apiFile).startswith("Ui_"): 254 if os.path.basename(apiFile).startswith("Ui_"):
251 # it is a forms source file, extract public attributes 255 # it is a forms source file, extract public attributes
252 # as well 256 # as well
253 apis.extend(self.__classesAttributesApi(module)) 257 apis.extend(self.__classesAttributesApi(module))
254 258

eric ide

mercurial