diff options
author | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-06-27 19:33:38 (GMT) |
---|---|---|
committer | Gustavo Niemeyer <gustavo@niemeyer.net> | 2003-06-27 19:33:38 (GMT) |
commit | 6cf26195c6e206cba1bb3ebe554e82ab52304bd5 (patch) | |
tree | 6401be86700a041d67be1ccad711451d352855f3 /Lib/distutils | |
parent | 01c623b1a3ad39164a77106b73ab5040026bdaa5 (diff) | |
download | cpython-6cf26195c6e206cba1bb3ebe554e82ab52304bd5.zip cpython-6cf26195c6e206cba1bb3ebe554e82ab52304bd5.tar.gz cpython-6cf26195c6e206cba1bb3ebe554e82ab52304bd5.tar.bz2 |
Do not add extra "\n" after bang line.
Diffstat (limited to 'Lib/distutils')
-rw-r--r-- | Lib/distutils/command/build_scripts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/distutils/command/build_scripts.py b/Lib/distutils/command/build_scripts.py index f61ad37..8de9cd3 100644 --- a/Lib/distutils/command/build_scripts.py +++ b/Lib/distutils/command/build_scripts.py @@ -15,7 +15,7 @@ from distutils.util import convert_path from distutils import log # check if Python is called on the first line with this expression -first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$') +first_line_re = re.compile('^#!.*python[0-9.]*([ \t].*)?$') class build_scripts (Command): @@ -96,7 +96,7 @@ class build_scripts (Command): (os.path.normpath(sys.executable), post_interp)) else: - outf.write("#!%s%s" % + outf.write("#!%s%s\n" % (os.path.join( sysconfig.get_config_var("BINDIR"), "python" + sysconfig.get_config_var("EXE")), |