[Python-checkins] CVS: python/dist/src/Lib os.py,1.48,1.49

Guido van Rossum gvanrossum@users.sourceforge.net
2001年10月24日 13:29:33 -0700


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv16541
Modified Files:
	os.py 
Log Message:
SF patch #474590 -- RISC OS support
Index: os.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/os.py,v
retrieving revision 1.48
retrieving revision 1.49
diff -C2 -d -r1.48 -r1.49
*** os.py	2001年10月19日 01:31:59	1.48
--- os.py	2001年10月24日 20:29:30	1.49
***************
*** 8,11 ****
--- 8,12 ----
 - os.pardir is a string representing the parent directory ('..' or '::')
 - os.sep is the (or a most common) pathname separator ('/' or ':' or '\\')
+ - os.extsep is the extension separator ('.' or '/')
 - os.altsep is the alternate pathname separator (None or '/')
 - os.pathsep is the component separator used in $PATH etc
***************
*** 168,171 ****
--- 169,178 ----
 else:
 raise ImportError, 'no os specific module found'
+ 
+ 
+ if sep=='.':
+ extsep = '/'
+ else:
+ extsep = '.'
 
 __all__.append("path")

AltStyle によって変換されたページ (->オリジナル) /