diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2004-06-08 08:29:33 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2004-06-08 08:29:33 (GMT) |
commit | bdec50f0277971830e307aff8090c1494a69f4ce (patch) | |
tree | 19ae2f89e1b093efd1062a997d9139c781b9d9a9 /Lib/ntpath.py | |
parent | f30d60edbc0d5047a2fdd01e25868e4b814107e2 (diff) | |
download | cpython-bdec50f0277971830e307aff8090c1494a69f4ce.zip cpython-bdec50f0277971830e307aff8090c1494a69f4ce.tar.gz cpython-bdec50f0277971830e307aff8090c1494a69f4ce.tar.bz2 |
Feature request #935915: Add os.path.devnull.
Diffstat (limited to 'Lib/ntpath.py')
-rw-r--r-- | Lib/ntpath.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 687d885..549c35e 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -14,7 +14,7 @@ __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "getatime","getctime", "islink","exists","isdir","isfile","ismount", "walk","expanduser","expandvars","normpath","abspath","splitunc", "curdir","pardir","sep","pathsep","defpath","altsep","extsep", - "realpath","supports_unicode_filenames"] + "devnull","realpath","supports_unicode_filenames"] # strings representing various path-related bits and pieces curdir = '.' @@ -29,6 +29,7 @@ if 'ce' in sys.builtin_module_names: elif 'os2' in sys.builtin_module_names: # OS/2 w/ VACPP altsep = '/' +devnull = 'nul' # Normalize the case of a pathname and map slashes to backslashes. # Other normalizations (such as optimizing '../' away) are not done |