[Python-checkins] CVS: python/dist/src/Lib/distutils/command build_scripts.py,1.11,1.12

A.M. Kuchling akuchling@users.sourceforge.net
Thu, 06 Dec 2001 13:29:30 -0800


Update of /cvsroot/python/python/dist/src/Lib/distutils/command
In directory usw-pr-cvs1:/tmp/cvs-serv3568

Modified Files:
	build_scripts.py 
Log Message:
[Bug #475009] Tighten the pattern for the first line, so we don't 
   adjust it when a versioned interpreter is supplied (#!.../python2 ...)


Index: build_scripts.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/distutils/command/build_scripts.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -C2 -d -r1.11 -r1.12
*** build_scripts.py	2001/08/10 19:00:41	1.11
--- build_scripts.py	2001/12/06 21:29:28	1.12
***************
*** 13,17 ****
  
  # check if Python is called on the first line with this expression
! first_line_re = re.compile(r'^#!.*python(\s+.*)?')
  
  class build_scripts (Command):
--- 13,17 ----
  
  # check if Python is called on the first line with this expression
! first_line_re = re.compile(r'^#!.*python(\s+.*)?$')
  
  class build_scripts (Command):