eric6/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py

changeset 7262
c4b5f3393d63
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r 3ead033becb8 -r c4b5f3393d63 eric6/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py
--- a/eric6/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py	Tue Sep 24 18:42:25 2019 +0200
+++ b/eric6/Plugins/VcsPlugins/vcsSubversion/SvnDialog.py	Tue Sep 24 18:45:33 2019 +0200
@@ -54,8 +54,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)
@@ -75,9 +77,11 @@
         self.buttonBox.button(QDialogButtonBox.Close).setFocus(
             Qt.OtherFocusReason)
         
-        if Preferences.getVCS("AutoClose") and \
-           self.normal and \
-           self.errors.toPlainText() == "":
+        if (
+            Preferences.getVCS("AutoClose") and
+            self.normal and
+            self.errors.toPlainText() == ""
+        ):
             self.accept()
         
     def on_buttonBox_clicked(self, button):

eric ide

mercurial