--- a/PyLint/PyLintExecDialog.py Wed Dec 30 11:02:01 2020 +0100 +++ b/PyLint/PyLintExecDialog.py Sat Apr 24 17:01:22 2021 +0200 @@ -9,7 +9,7 @@ import os -from PyQt5.QtCore import pyqtSlot, Qt, QTimer, QProcess +from PyQt5.QtCore import pyqtSlot, Qt, QTimer, QProcess from PyQt5.QtGui import QTextCursor from PyQt5.QtWidgets import ( QWidget, QHeaderView, QApplication, QDialogButtonBox, QTreeWidgetItem @@ -394,10 +394,11 @@ """ Private slot to save the report to a file. """ - if self.htmlOutput: - fileFilter = self.tr("HTML Files (*.html);;All Files (*)") - else: - fileFilter = self.tr("Text Files (*.txt);;All Files (*)") + fileFilter = ( + self.tr("HTML Files (*.html);;All Files (*)") + if self.htmlOutput else + self.tr("Text Files (*.txt);;All Files (*)") + ) self.reportFile = E5FileDialog.getSaveFileName( self,