eric6/DebugClients/Python/DebugClientBase.py

changeset 8221
0572a215bd2f
parent 8207
d359172d11be
child 8228
772103b14c18
diff -r 006ee31b4835 -r 0572a215bd2f eric6/DebugClients/Python/DebugClientBase.py
--- a/eric6/DebugClients/Python/DebugClientBase.py	Sun Apr 11 12:38:16 2021 +0200
+++ b/eric6/DebugClients/Python/DebugClientBase.py	Sun Apr 11 16:53:48 2021 +0200
@@ -2397,8 +2397,5 @@
         @return flag indicating eligibility
         @rtype bool
         """
-        for pattern in self.noDebugList:
-            if fnmatch.fnmatch(scriptName, pattern):
-                return True
-        
-        return False
+        return any(fnmatch.fnmatch(scriptName, pattern)
+                   for pattern in self.noDebugList)

eric ide

mercurial