eric6/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py

changeset 7256
4ef3b78ebb4e
parent 7229
53054eb5b15a
child 7360
9190402e4505
diff -r d595f6f9cbf8 -r 4ef3b78ebb4e eric6/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py
--- a/eric6/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py	Sat Sep 21 18:30:02 2019 +0200
+++ b/eric6/Plugins/CheckerPlugins/Tabnanny/TabnannyDialog.py	Sat Sep 21 20:30:56 2019 +0200
@@ -13,8 +13,9 @@
 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
 
@@ -356,16 +357,19 @@
         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", "Tabnanny", self.__data)
         filterList = [f.strip() for f in filterString.split(",")
                       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

eric ide

mercurial