--- a/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py Sat Sep 21 20:30:56 2019 +0200 +++ b/eric6/Plugins/VcsPlugins/vcsMercurial/HgBookmarksListDialog.py Sat Sep 21 22:03:03 2019 +0200 @@ -10,10 +10,13 @@ import os -from PyQt5.QtCore import pyqtSlot, QProcess, Qt, QTimer, QCoreApplication, \ - QPoint -from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QHeaderView, \ - QTreeWidgetItem, QLineEdit, QMenu, QInputDialog +from PyQt5.QtCore import ( + pyqtSlot, QProcess, Qt, QTimer, QCoreApplication, QPoint +) +from PyQt5.QtWidgets import ( + QDialog, QDialogButtonBox, QHeaderView, QTreeWidgetItem, QLineEdit, QMenu, + QInputDialog +) from E5Gui.E5Application import e5App from E5Gui import E5MessageBox @@ -76,8 +79,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) @@ -159,8 +164,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)