From: Andrew M. Kuchling Date: Thu, 6 Dec 2001 21:29:28 +0000 (+0000) Subject: [Bug #475009] Tighten the pattern for the first line, so we don't X-Git-Tag: v2.2.1c1~501 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=3ecc1ce529f24c69e90b270786cd3e43b300a274;p=thirdparty%2FPython%2Fcpython.git [Bug #475009] Tighten the pattern for the first line, so we don't adjust it when a versioned interpreter is supplied (#!.../python2 ...) --- diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index 16024e5fed14..31750b7c1de1 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py @@ -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):