[Python-checkins] python/dist/src/Lib/distutils/command build_scripts.py,1.20,1.21
niemeyer@users.sourceforge.net
niemeyer@users.sourceforge.net
Fri, 27 Jun 2003 12:33:40 -0700
Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory sc8-pr-cvs1:/tmp/cvs-serv9490
Modified Files:
build_scripts.py
Log Message:
Do not add extra "\n" after bang line.
Index: build_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_scripts.py,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** build_scripts.py 29 Jan 2003 16:58:31 -0000 1.20
--- build_scripts.py 27 Jun 2003 19:33:38 -0000 1.21
***************
*** 16,20 ****
# check if Python is called on the first line with this expression
! first_line_re = re.compile(r'^#!.*python[0-9.]*(\s+.*)?$')
class build_scripts (Command):
--- 16,20 ----
# check if Python is called on the first line with this expression
! first_line_re = re.compile('^#!.*python[0-9.]*([ \t].*)?$')
class build_scripts (Command):
***************
*** 97,101 ****
post_interp))
else:
! outf.write("#!%s%s" %
(os.path.join(
sysconfig.get_config_var("BINDIR"),
--- 97,101 ----
post_interp))
else:
! outf.write("#!%s%s\n" %
(os.path.join(
sysconfig.get_config_var("BINDIR"),