--- a/ProjectDjango/DjangoDialog.py Sat May 23 11:14:54 2020 +0200 +++ b/ProjectDjango/DjangoDialog.py Mon Jun 22 19:32:12 2020 +0200 @@ -16,8 +16,9 @@ import os from PyQt5.QtCore import pyqtSlot, QProcess, QTimer, QFileInfo -from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QAbstractButton, \ - QTextEdit, QLineEdit +from PyQt5.QtWidgets import ( + QDialog, QDialogButtonBox, QAbstractButton, QTextEdit, QLineEdit +) from E5Gui import E5MessageBox, E5FileDialog @@ -105,8 +106,10 @@ Private 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)