eric6/PluginManager/PluginUninstallDialog.py

changeset 7255
d595f6f9cbf8
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/PluginManager/PluginUninstallDialog.py	Sat Sep 21 17:41:22 2019 +0200
+++ b/eric6/PluginManager/PluginUninstallDialog.py	Sat Sep 21 18:30:02 2019 +0200
@@ -82,8 +82,8 @@
         for pluginName in pluginNames:
             fname = "{0}.py".format(os.path.join(pluginDirectory, pluginName))
             self.pluginNameCombo.addItem(pluginName, fname)
-        self.buttonBox.button(QDialogButtonBox.Ok)\
-            .setEnabled(self.pluginNameCombo.currentText() != "")
+        self.buttonBox.button(QDialogButtonBox.Ok).setEnabled(
+            self.pluginNameCombo.currentText() != "")
     
     @pyqtSlot()
     def on_buttonBox_accepted(self):
@@ -99,11 +99,11 @@
         
         @return flag indicating success (boolean)
         """
-        pluginDirectory = self.pluginDirectoryCombo\
-            .itemData(self.pluginDirectoryCombo.currentIndex())
+        pluginDirectory = self.pluginDirectoryCombo.itemData(
+            self.pluginDirectoryCombo.currentIndex())
         pluginName = self.pluginNameCombo.currentText()
-        pluginFile = self.pluginNameCombo\
-            .itemData(self.pluginNameCombo.currentIndex())
+        pluginFile = self.pluginNameCombo.itemData(
+            self.pluginNameCombo.currentIndex())
         
         if not self.__pluginManager.unloadPlugin(pluginName):
             E5MessageBox.critical(
@@ -132,8 +132,10 @@
             packageDir = ""
         else:
             packageDir = os.path.join(pluginDirectory, package)
-        if hasattr(module, "prepareUninstall") and \
-           not self.keepConfigurationCheckBox.isChecked():
+        if (
+            hasattr(module, "prepareUninstall") and
+            not self.keepConfigurationCheckBox.isChecked()
+        ):
             module.prepareUninstall()
         internalPackages = []
         if hasattr(module, "internalPackages"):

eric ide

mercurial