eric6/DebugClients/Python/DebugUtilities.py

changeset 8221
0572a215bd2f
parent 8217
385f60c94548
child 8228
772103b14c18
diff -r 006ee31b4835 -r 0572a215bd2f eric6/DebugClients/Python/DebugUtilities.py
--- a/eric6/DebugClients/Python/DebugUtilities.py	Sun Apr 11 12:38:16 2021 +0200
+++ b/eric6/DebugClients/Python/DebugUtilities.py	Sun Apr 11 16:53:48 2021 +0200
@@ -193,7 +193,7 @@
                 for line in f:
                     line = line.strip()
                     if line:
-                        for name in PYTHON_NAMES:
+                        for name in PYTHON_NAMES:   # __IGNORE_WARNING_Y110__
                             if line.startswith(
                                 '#!/usr/bin/env {0}'.format(name)
                             ):
@@ -224,9 +224,8 @@
         return False
     
     prog = os.path.basename(program).lower()
-    for pyname in PYTHON_NAMES:
-        if pyname in prog:
-            return True
+    if any(pyname in prog for pyname in PYTHON_NAMES):
+        return True
     
     return (
         not isWindowsPlatform() and

eric ide

mercurial