PyLint/PyLintExecDialog.py

changeset 85
6124794c3ffe
parent 82
5493d105d329
child 89
8acd446fb6e6
diff -r 022f0bc87198 -r 6124794c3ffe PyLint/PyLintExecDialog.py
--- a/PyLint/PyLintExecDialog.py	Mon May 04 17:51:42 2020 +0200
+++ b/PyLint/PyLintExecDialog.py	Mon Jun 22 19:49:17 2020 +0200
@@ -7,18 +7,13 @@
 Module implementing a dialog to show the results of the PyLint run.
 """
 
-from __future__ import unicode_literals
-try:
-    str = unicode
-except NameError:
-    pass
-
 import os
 
 from PyQt5.QtCore import QTimer, QProcess, Qt, pyqtSlot
 from PyQt5.QtGui import QCursor, QTextCursor
-from PyQt5.QtWidgets import QWidget, QHeaderView, QApplication, \
-    QDialogButtonBox, QTreeWidgetItem
+from PyQt5.QtWidgets import (
+    QWidget, QHeaderView, QApplication, QDialogButtonBox, QTreeWidgetItem
+)
 
 from E5Gui import E5MessageBox, E5FileDialog
 from E5Gui.E5Application import e5App
@@ -189,8 +184,10 @@
             cursor.movePosition(QTextCursor.Start)
             self.contents.setTextCursor(cursor)
         
-        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)

eric ide

mercurial