diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2001-12-06 21:29:28 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2001-12-06 21:29:28 (GMT) |
commit | 3ecc1ce529f24c69e90b270786cd3e43b300a274 (patch) | |
tree | 263b4870decf3c9efcc1b86359d3d699b5d5347a /Lib/distutils/command | |
parent | 35974fbf31fd2e2a64fd13a6565f1478ed8cfa6e (diff) | |
download | cpython-3ecc1ce529f24c69e90b270786cd3e43b300a274.zip cpython-3ecc1ce529f24c69e90b270786cd3e43b300a274.tar.gz cpython-3ecc1ce529f24c69e90b270786cd3e43b300a274.tar.bz2 |
[Bug #475009] Tighten the pattern for the first line, so we don't
adjust it when a versioned interpreter is supplied (#!.../python2 ...)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r-- | Lib/distutils/command/build_scripts.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index 16024e5..31750b7 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): |