diff -r be24be92ed0f -r 72ebb74aa42d ProjectPyramid/PyramidDialog.py --- 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)