eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py

changeset 7257
c4d0cac9b5c9
parent 7229
53054eb5b15a
child 7360
9190402e4505
--- a/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py	Sat Sep 21 20:30:56 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsMercurial/GpgExtension/HgGpgSignaturesDialog.py	Sat Sep 21 22:03:03 2019 +0200
@@ -10,10 +10,12 @@
 
 import os
 
-from PyQt5.QtCore import pyqtSlot, QProcess, QTimer, Qt, QRegExp, \
-    QCoreApplication
-from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QHeaderView, \
-    QTreeWidgetItem, QLineEdit
+from PyQt5.QtCore import (
+    pyqtSlot, QProcess, QTimer, Qt, QRegExp, QCoreApplication
+)
+from PyQt5.QtWidgets import (
+    QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, QLineEdit
+)
 
 from E5Gui import E5MessageBox
 
@@ -61,8 +63,10 @@
             if self.__hgClient.isExecuting():
                 self.__hgClient.cancel()
         else:
-            if self.process is not None and \
-               self.process.state() != QProcess.NotRunning:
+            if (
+                self.process is not None and
+                self.process.state() != QProcess.NotRunning
+            ):
                 self.process.terminate()
                 QTimer.singleShot(2000, self.process.kill)
                 self.process.waitForFinished(3000)
@@ -130,8 +134,10 @@
         Private slot called when the process finished or the user pressed
         the button.
         """
-        if self.process is not None and \
-           self.process.state() != QProcess.NotRunning:
+        if (
+            self.process is not None and
+            self.process.state() != QProcess.NotRunning
+        ):
             self.process.terminate()
             QTimer.singleShot(2000, self.process.kill)
             self.process.waitForFinished(3000)
@@ -272,8 +278,10 @@
         Private slot handling changes of the selection.
         """
         selectedItems = self.signaturesList.selectedItems()
-        if len(selectedItems) == 1 and \
-           self.signaturesList.indexOfTopLevelItem(selectedItems[0]) != -1:
+        if (
+            len(selectedItems) == 1 and
+            self.signaturesList.indexOfTopLevelItem(selectedItems[0]) != -1
+        ):
             self.verifyButton.setEnabled(True)
         else:
             self.verifyButton.setEnabled(False)
@@ -283,10 +291,12 @@
         """
         Private slot to verify the signatures of the selected revision.
         """
-        rev = self.signaturesList.selectedItems()[0].text(0)\
+        rev = (
+            self.signaturesList.selectedItems()[0].text(0)
             .split(":")[0].strip()
-        self.vcs.getExtensionObject("gpg")\
-            .hgGpgVerifySignatures(self.__path, rev)
+        )
+        self.vcs.getExtensionObject("gpg").hgGpgVerifySignatures(
+            self.__path, rev)
     
     @pyqtSlot(str)
     def on_categoryCombo_activated(self, txt):

eric ide

mercurial