Do not add extra "\n" after bang line.

This commit is contained in:
Gustavo Niemeyer 2003-06-27 19:33:38 +00:00
parent 01c623b1a3
commit 6cf26195c6
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ from distutils.util import convert_path
from distutils import log from distutils import log
# check if Python is called on the first line with this expression # 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): class build_scripts (Command):
@ -96,7 +96,7 @@ class build_scripts (Command):
(os.path.normpath(sys.executable), (os.path.normpath(sys.executable),
post_interp)) post_interp))
else: else:
outf.write("#!%s%s" % outf.write("#!%s%s\n" %
(os.path.join( (os.path.join(
sysconfig.get_config_var("BINDIR"), sysconfig.get_config_var("BINDIR"),
"python" + sysconfig.get_config_var("EXE")), "python" + sysconfig.get_config_var("EXE")),