eric6/QScintilla/MiniEditor.py

changeset 8228
772103b14c18
parent 8222
5994b80b8760
child 8235
78e6d29eb773
--- a/eric6/QScintilla/MiniEditor.py	Mon Apr 12 19:05:23 2021 +0200
+++ b/eric6/QScintilla/MiniEditor.py	Mon Apr 12 19:21:40 2021 +0200
@@ -3459,10 +3459,10 @@
         
         if not bindName and line0.startswith("#!"):
             # #! marker detection
-            if "python3" in line0:
-                bindName = "dummy.py"
-                self.filetype = "Python3"
-            elif "python" in line0:
+            if (
+                "python3" in line0 or
+                "python" in line0
+            ):
                 bindName = "dummy.py"
                 self.filetype = "Python3"
             elif ("/bash" in line0 or "/sh" in line0):

eric ide

mercurial