Commit 3ecc1ce5 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[Bug #475009] Tighten the pattern for the first line, so we don't

   adjust it when a versioned interpreter is supplied (#!.../python2 ...)
parent 35974fbf
......@@ -12,7 +12,7 @@ from distutils.dep_util import newer
from distutils.util import convert_path
# check if Python is called on the first line with this expression
first_line_re = re.compile(r'^#!.*python(\s+.*)?')
first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
class build_scripts (Command):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment