--- a/PluginVulture.py Tue Apr 23 19:34:39 2024 +0200 +++ b/PluginVulture.py Tue Jul 09 14:31:29 2024 +0200 @@ -15,23 +15,18 @@ from eric7.EricGui.EricAction import EricAction from eric7.EricWidgets.EricApplication import ericApp -try: - from eric7.SystemUtilities.PythonUtilities import determinePythonVersion -except ImportError: - # imports for eric < 23.1 - from eric7.Utilities import determinePythonVersion - # Start-Of-Header name = "Unused Code Checker Plug-in" author = "Detlev Offenbach <detlev@die-offenbachs.de>" autoactivate = True deactivateable = True -version = "10.3.1" +version = "10.3.2" className = "VulturePlugin" packageName = "VultureChecker" shortDescription = "Plug-in to detect unused code using the 'vulture' library" longDescription = """Plug-in to detect unused code using the 'vulture' library.""" needsRestart = False +hasCompiledForms = True pyqtApi = 2 # End-Of-Header @@ -161,7 +156,7 @@ @type str """ if lang is None: - lang = "Python{0}".format(determinePythonVersion(filename, source)) + lang = "Python3" if lang != "Python3": return @@ -180,11 +175,7 @@ "Python3": [], } for filename, source in argumentsList: - lang = "Python{0}".format(determinePythonVersion(filename, source)) - if lang != "Python3": - continue - else: - data[lang].append((filename, source)) + data["Python3"].append((filename, source)) self.queuedBatches = [] if data["Python3"]: