From: Georg Brandl Date: Fri, 5 Dec 2008 07:45:54 +0000 (+0000) Subject: #4401: Re-add os.extsep. X-Git-Tag: v3.1a1~757 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ed5b9b3fd5f49e61687a7e04e1e2509b8b6c9d56;p=python #4401: Re-add os.extsep. --- diff --git a/Lib/os.py b/Lib/os.py index 2fdf6688a9..5a020d3227 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