Mercurial > cpython-lru_cache-weakref
diff Lib/distutils/command/build_scripts.py @ 21271:ac3fdd1412d9 legacy-trunk
[Bug #475009] Tighten the pattern for the first line, so we don't
adjust it when a versioned interpreter is supplied (#!.../python2 ...)
| author | Andrew M. Kuchling <amk@amk.ca> |
|---|---|
| date | Thu, 06 Dec 2001 21:29:28 +0000 |
| parents | 2d67d238d4e9 |
| children | 4420a4bd96a4 |
line wrap: on
line diff
--- a/Lib/distutils/command/build_scripts.py Thu Dec 06 21:28:18 2001 +0000 +++ b/Lib/distutils/command/build_scripts.py Thu Dec 06 21:29:28 2001 +0000 @@ -12,7 +12,7 @@ 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):
