[Python-checkins] python/dist/src/Lib site.py,1.53.6.4,1.53.6.5

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Mar 20 16:14:27 EST 2004


Update of /cvsroot/python/python/dist/src/Lib
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31098/Lib

Modified Files:
      Tag: release23-maint
	site.py 
Log Message:
Strip all whitespace at the end of a line when validating paths specified in
a .pth file.
Fixes bug #700055 .


Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.53.6.4
retrieving revision 1.53.6.5
diff -C2 -d -r1.53.6.4 -r1.53.6.5
*** site.py	2 Dec 2003 15:00:54 -0000	1.53.6.4
--- site.py	20 Mar 2004 21:14:25 -0000	1.53.6.5
***************
*** 149,154 ****
              exec dir
              continue
!         if dir[-1] == '\n':
!             dir = dir[:-1]
          dir, dircase = makepath(sitedir, dir)
          if not dircase in _dirs_in_sys_path and os.path.exists(dir):
--- 149,153 ----
              exec dir
              continue
!         dir = dir.rstrip()
          dir, dircase = makepath(sitedir, dir)
          if not dircase in _dirs_in_sys_path and os.path.exists(dir):




More information about the Python-checkins mailing list