[Python-checkins] python/dist/src/Lib site.py,1.57,1.58

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


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

Modified Files:
	site.py 
Log Message:
Fix how line endings were handled when iterating over a .pth file by stripping
all whitespace at the end of the path line.


Index: site.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/site.py,v
retrieving revision 1.57
retrieving revision 1.58
diff -C2 -d -r1.57 -r1.58
*** site.py	13 Feb 2004 07:14:13 -0000	1.57
--- site.py	20 Mar 2004 21:08:17 -0000	1.58
***************
*** 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