Adjusted code for eric7 23.6 and newer. eric7 release-10.2.3

Thu, 25 May 2023 10:04:34 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 25 May 2023 10:04:34 +0200
branch
eric7
changeset 202
75476c0b400d
parent 201
1770e4b702a9
child 203
21f4fb97243d

Adjusted code for eric7 23.6 and newer.

AssistantEric/APIsManager.py file | annotate | diff | comparison | revisions
ChangeLog file | annotate | diff | comparison | revisions
PluginAssistantEric.py file | annotate | diff | comparison | revisions
PluginAssistantEric.zip file | annotate | diff | comparison | revisions
--- a/AssistantEric/APIsManager.py	Sat Dec 31 16:27:39 2022 +0100
+++ b/AssistantEric/APIsManager.py	Thu May 25 10:04:34 2023 +0200
@@ -246,7 +246,11 @@
                     from eric7.DocumentationTools.APIGenerator import APIGenerator
 
                     apiGenerator = APIGenerator(module)
-                    apis = apiGenerator.genAPI(True, "", True)
+                    try:
+                        apis = apiGenerator.genAPI("", True)
+                    except TypeError:
+                        # backward compatibility for eric7 < 23.6
+                        apis = apiGenerator.genAPI(True, "", True)
                     if os.path.basename(apiFile).startswith("Ui_"):
                         # it is a forms source file, extract public attributes
                         # as well
--- a/ChangeLog	Sat Dec 31 16:27:39 2022 +0100
+++ b/ChangeLog	Thu May 25 10:04:34 2023 +0200
@@ -1,5 +1,8 @@
 ChangeLog
 ---------
+Version 10.2.3:
+- adjusted some code for eric7 23.6 and newer
+
 Version 10.2.2:
 - adjusted some more code for eric7 22.12 and newer
 
--- a/PluginAssistantEric.py	Sat Dec 31 16:27:39 2022 +0100
+++ b/PluginAssistantEric.py	Thu May 25 10:04:34 2023 +0200
@@ -20,7 +20,7 @@
 author = "Detlev Offenbach <detlev@die-offenbachs.de>"
 autoactivate = True
 deactivateable = True
-version = "10.2.2"
+version = "10.2.3"
 className = "AssistantEricPlugin"
 packageName = "AssistantEric"
 shortDescription = "Alternative autocompletion and calltips provider."
Binary file PluginAssistantEric.zip has changed

eric ide

mercurial