[Python-checkins] CVS: python/dist/src/Lib os.py,1.48,1.49
Guido van Rossum
gvanrossum@users.sourceforge.net
Wed, 24 Oct 2001 13:29:33 -0700
- Previous message: [Python-checkins] CVS: python/dist/src/Include pyport.h,2.38,2.39
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test regrtest.py,1.64,1.65 test_imageop.py,1.11,1.12 test_import.py,1.9,1.10 test_mailbox.py,1.7,1.8 test_mhlib.py,1.5,1.6 test_minidom.py,1.28,1.29 test_pkg.py,1.13,1.14 test_pkgimport.py,1.4,1.5 test_repr.py,1.8,1.9 test_rgbimg.py,1.12,1.13 test_sax.py,1.18,1.19 test_signal.py,1.8,1.9 test_tokenize.py,1.5,1.6 test_urllib2.py,1.5,1.6 test_zipfile.py,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
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")
- Previous message: [Python-checkins] CVS: python/dist/src/Include pyport.h,2.38,2.39
- Next message: [Python-checkins] CVS: python/dist/src/Lib/test regrtest.py,1.64,1.65 test_imageop.py,1.11,1.12 test_import.py,1.9,1.10 test_mailbox.py,1.7,1.8 test_mhlib.py,1.5,1.6 test_minidom.py,1.28,1.29 test_pkg.py,1.13,1.14 test_pkgimport.py,1.4,1.5 test_repr.py,1.8,1.9 test_rgbimg.py,1.12,1.13 test_sax.py,1.18,1.19 test_signal.py,1.8,1.9 test_tokenize.py,1.5,1.6 test_urllib2.py,1.5,1.6 test_zipfile.py,1.7,1.8
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]