]> granicus.if.org Git - python/commitdiff
[Bug #475009] Tighten the pattern for the first line, so we don't
authorAndrew M. Kuchling <amk@amk.ca>
Thu, 6 Dec 2001 21:29:28 +0000 (21:29 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Thu, 6 Dec 2001 21:29:28 +0000 (21:29 +0000)
   adjust it when a versioned interpreter is supplied (#!.../python2 ...)

Lib/distutils/command/build_scripts.py

index 16024e5fed1497f99015435377751f8b9474e173..31750b7c1de1eec71c77a4663c55d97a6d04ca32 100644 (file)
@@ -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):