[Python-checkins] r67552 - python/branches/py3k/Lib/os.py

georg.brandl python-checkins at python.org
Fri Dec 5 08:45:55 CET 2008


Author: georg.brandl
Date: Fri Dec  5 08:45:54 2008
New Revision: 67552

Log:
#4401: Re-add os.extsep.


Modified:
   python/branches/py3k/Lib/os.py

Modified: python/branches/py3k/Lib/os.py
==============================================================================
--- python/branches/py3k/Lib/os.py	(original)
+++ python/branches/py3k/Lib/os.py	Fri Dec  5 08:45:54 2008
@@ -7,6 +7,7 @@
   - os.curdir is a string representing the current directory ('.' or ':')
   - 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 (always '.')
   - os.altsep is the alternate pathname separator (None or '/')
   - os.pathsep is the component separator used in $PATH etc
   - os.linesep is the line separator in text files ('\r' or '\n' or '\r\n')
@@ -102,7 +103,8 @@
     raise ImportError('no os specific module found')
 
 sys.modules['os.path'] = path
-from os.path import curdir, pardir, sep, pathsep, defpath, altsep, devnull
+from os.path import (curdir, pardir, sep, pathsep, defpath, extsep, altsep,
+    devnull)
 
 del _names
 


More information about the Python-checkins mailing list