diff -r 349308e84eeb -r 772103b14c18 eric6/QScintilla/MiniEditor.py --- 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):