summaryrefslogtreecommitdiffstats
path: root/Lib/os.py
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-12-05 07:45:54 (GMT)
committerGeorg Brandl <georg@python.org>2008-12-05 07:45:54 (GMT)
commited5b9b3fd5f49e61687a7e04e1e2509b8b6c9d56 (patch)
tree96d66e6c56fb3355b4ae1eab2672295e7ce96962 /Lib/os.py
parent7fe2c4af0e58d8c7a9f3f91c29559b14fb78c58d (diff)
downloadcpython-ed5b9b3fd5f49e61687a7e04e1e2509b8b6c9d56.zip
cpython-ed5b9b3fd5f49e61687a7e04e1e2509b8b6c9d56.tar.gz
cpython-ed5b9b3fd5f49e61687a7e04e1e2509b8b6c9d56.tar.bz2
#4401: Re-add os.extsep.
Diffstat (limited to 'Lib/os.py')
-rw-r--r--Lib/os.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/os.py b/Lib/os.py
index 2fdf668..5a020d3 100644
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -7,6 +7,7 @@ This exports:
- 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 @@ else:
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