diff --git a/mode/python.py b/mode/python.py index b11a4f6..cf886c9 100644 --- a/mode/python.py +++ b/mode/python.py @@ -562,7 +562,7 @@ class Python(mode.Fundamental): name = 'Python' extensions = ['.py'] #detection = ['python'] - detection = [re.compile('^#!(?:.+/)python')] + detection = [re.compile('^#!(?:.+[/ ])python')] tabbercls = PythonTabber grammar = PythonGrammar opentokens = ('delimiter',)