--- 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