ProjectPyramid/PyramidDialog.py

changeset 138
72ebb74aa42d
parent 132
c0d53fb9a0e0
child 143
4ef44e854b39
--- a/ProjectPyramid/PyramidDialog.py	Thu Apr 09 18:34:09 2020 +0200
+++ b/ProjectPyramid/PyramidDialog.py	Tue Jun 23 18:14:14 2020 +0200
@@ -7,12 +7,6 @@
 Module implementing a dialog starting a process and showing its output.
 """
 
-from __future__ import unicode_literals
-try:
-    str = unicode
-except NameError:
-    pass
-
 import os
 
 from PyQt5.QtCore import QProcess, QTimer, pyqtSlot, Qt, QCoreApplication
@@ -82,8 +76,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