eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py

changeset 8205
4a0f1f896341
parent 8188
bfa6c0969acf
child 8218
7c09585bd960
diff -r fd477cded1c1 -r 4a0f1f896341 eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py
--- a/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Thu Apr 08 17:27:12 2021 +0200
+++ b/eric6/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCodeSelectionDialog.py	Thu Apr 08 18:27:47 2021 +0200
@@ -45,7 +45,7 @@
         self.codeTable.headerItem().setText(self.codeTable.columnCount(), "")
         codeList = [code.strip() for code in codes.split(",") if code.strip()]
         if categories:
-            codeList = [code for code in codeList if not code[0] in categories]
+            codeList = [code for code in codeList if code[0] not in categories]
         
         if showFixCodes:
             from .CodeStyleFixer import FixableCodeStyleIssues
@@ -57,7 +57,7 @@
             if categories:
                 # filter by category
                 selectableCodes = [x for x in selectableCodes
-                                   if not x[0] in categories]
+                                   if x[0] not in categories]
         for code in sorted(selectableCodes):
             message = getTranslatedMessage(code, [], example=True)
             if message is None:

eric ide

mercurial