A little code modernization and correction of a typo in TaskViewer.py. eric7

Thu, 06 Mar 2025 16:28:13 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Thu, 06 Mar 2025 16:28:13 +0100
branch
eric7
changeset 11164
d0ca3e676654
parent 11163
f6c0a18254d6
child 11165
24e1beb8779a

A little code modernization and correction of a typo in TaskViewer.py.

src/eric7/Tasks/TaskViewer.py file | annotate | diff | comparison | revisions
--- a/src/eric7/Tasks/TaskViewer.py	Wed Mar 05 15:53:37 2025 +0100
+++ b/src/eric7/Tasks/TaskViewer.py	Thu Mar 06 16:28:13 2025 +0100
@@ -816,7 +816,7 @@
 
         # apply file filter
         filterList = [
-            f.strip() for f in self.__projectTasksScanFilter.split(",") if f.strip()
+            f for f in map(str.strip, self.__projectTasksScanFilter.split(",")) if f
         ]
         if filterList:
             for scanFilter in filterList:
@@ -990,7 +990,7 @@
             if self.__interrupt:
                 break
 
-            # read the file and split it into textlines
+            # read the file and split it into text lines
             try:
                 text, _encoding = Utilities.readEncodedFile(fn)
                 lines = text.splitlines()

eric ide

mercurial