--- a/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Mon Sep 09 18:52:08 2019 +0200 +++ b/eric6/Plugins/CheckerPlugins/SyntaxChecker/SyntaxCheckerDialog.py Thu Oct 03 11:12:10 2019 +0200 @@ -7,14 +7,14 @@ Module implementing a simple Python syntax checker. """ -from __future__ import unicode_literals import os import fnmatch from PyQt5.QtCore import pyqtSlot, Qt, QTimer -from PyQt5.QtWidgets import QDialog, QDialogButtonBox, QTreeWidgetItem, \ - QApplication, QHeaderView +from PyQt5.QtWidgets import ( + QDialog, QDialogButtonBox, QTreeWidgetItem, QApplication, QHeaderView +) from E5Gui.E5Application import e5App @@ -120,8 +120,10 @@ @param sourcecode faulty line of code (string) @param isWarning flag indicating a warning message (boolean) """ - if self.__lastFileItem is None or \ - self.__lastFileItem.data(0, self.filenameRole) != filename: + if ( + self.__lastFileItem is None or + self.__lastFileItem.data(0, self.filenameRole) != filename + ): # It's a new file self.__lastFileItem = QTreeWidgetItem(self.resultList, [ self.__project.getRelativePath(filename)]) @@ -429,8 +431,10 @@ fileList = self.__fileList[:] filterString = self.excludeFilesEdit.text() - if "ExcludeFiles" not in self.__data or \ - filterString != self.__data["ExcludeFiles"]: + if ( + "ExcludeFiles" not in self.__data or + filterString != self.__data["ExcludeFiles"] + ): self.__data["ExcludeFiles"] = filterString self.__project.setData("CHECKERSPARMS", "SyntaxChecker", self.__data) @@ -438,8 +442,9 @@ if f.strip()] if filterList: for fileFilter in filterList: - fileList = \ - [f for f in fileList if not fnmatch.fnmatch(f, fileFilter)] + fileList = [ + f for f in fileList if not fnmatch.fnmatch(f, fileFilter) + ] self.resultList.clear() self.noResults = True