ProjectPyramid/PyramidRoutesDialog.py

changeset 138
72ebb74aa42d
parent 132
c0d53fb9a0e0
child 143
4ef44e854b39
--- a/ProjectPyramid/PyramidRoutesDialog.py	Thu Apr 09 18:34:09 2020 +0200
+++ b/ProjectPyramid/PyramidRoutesDialog.py	Tue Jun 23 18:14:14 2020 +0200
@@ -7,17 +7,12 @@
 Module implementing a dialog showing the available routes.
 """
 
-from __future__ import unicode_literals
-try:
-    str = unicode
-except NameError:
-    pass
-
 import os
 
 from PyQt5.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication
-from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QLineEdit, \
-    QTreeWidgetItem
+from PyQt5.QtWidgets import (
+    QDialog, QDialogButtonBox, QLineEdit, QTreeWidgetItem
+)
 
 from E5Gui import E5MessageBox
 
@@ -57,8 +52,10 @@
         Public slot called when the process finished or the user pressed the
         button.
         """
-        if self.proc is not None and \
-           self.proc.state() != QProcess.NotRunning:
+        if (
+            self.proc is not None and
+            self.proc.state() != QProcess.NotRunning
+        ):
             self.proc.terminate()
             QTimer.singleShot(2000, self.proc.kill)
             self.proc.waitForFinished(3000)

eric ide

mercurial