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 |