eric6/PluginManager/PluginManager.py

changeset 8222
5994b80b8760
parent 8218
7c09585bd960
child 8228
772103b14c18
diff -r 0572a215bd2f -r 5994b80b8760 eric6/PluginManager/PluginManager.py
--- a/eric6/PluginManager/PluginManager.py	Sun Apr 11 16:53:48 2021 +0200
+++ b/eric6/PluginManager/PluginManager.py	Sun Apr 11 18:45:10 2021 +0200
@@ -1166,14 +1166,16 @@
             list(self.__onDemandActiveModules.values()) +
             list(self.__onDemandInactiveModules.values())
         ):
-            if getattr(module, "pluginType", "") == "version_control":
-                if hasattr(module, "getVcsSystemIndicator"):
-                    res = module.getVcsSystemIndicator()
-                    for indicator, vcsData in list(res.items()):
-                        if indicator in vcsDict:
-                            vcsDict[indicator].append(vcsData)
-                        else:
-                            vcsDict[indicator] = [vcsData]
+            if (
+                getattr(module, "pluginType", "") == "version_control" and
+                hasattr(module, "getVcsSystemIndicator")
+            ):
+                res = module.getVcsSystemIndicator()
+                for indicator, vcsData in list(res.items()):
+                    if indicator in vcsDict:
+                        vcsDict[indicator].append(vcsData)
+                    else:
+                        vcsDict[indicator] = [vcsData]
         
         return vcsDict
     
@@ -1433,9 +1435,11 @@
             list(self.__activeModules.values()) +
             list(self.__inactiveModules.values())
         ):
-            if getattr(module, "pluginType", "") == type_:
-                if hasattr(module, "clearPrivateData"):
-                    module.clearPrivateData()
+            if (
+                getattr(module, "pluginType", "") == type_ and
+                hasattr(module, "clearPrivateData")
+            ):
+                module.clearPrivateData()
 
 #
 # eflag: noqa = M801

eric ide

mercurial