diff options
author | Georg Brandl <georg@python.org> | 2005-08-22 18:02:59 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-08-22 18:02:59 +0000 |
commit | 52896d1ea6163b9ef22a85b5a49b96c5727f0998 (patch) | |
tree | 4cb7403d37163c70789490001f1b864e84df81a7 | |
parent | 64af9743adbb58287fd7641bc5b2b8dc67cd0e84 (diff) | |
download | cpython-52896d1ea6163b9ef22a85b5a49b96c5727f0998.tar.gz |
Bug #1266283: lexists() is not exported from os.path
-rw-r--r-- | Lib/macpath.py | 2 | ||||
-rw-r--r-- | Lib/ntpath.py | 8 | ||||
-rw-r--r-- | Lib/os2emxpath.py | 8 | ||||
-rw-r--r-- | Lib/posixpath.py | 4 | ||||
-rw-r--r-- | Misc/NEWS | 2 |
5 files changed, 13 insertions, 11 deletions
diff --git a/Lib/macpath.py b/Lib/macpath.py index dc7f753f02..f93ceb1540 100644 --- a/Lib/macpath.py +++ b/Lib/macpath.py @@ -5,7 +5,7 @@ from stat import * __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "basename","dirname","commonprefix","getsize","getmtime", - "getatime","getctime", "islink","exists","isdir","isfile", + "getatime","getctime", "islink","exists","lexists","isdir","isfile", "walk","expanduser","expandvars","normpath","abspath", "curdir","pardir","sep","pathsep","defpath","altsep","extsep", "devnull","realpath","supports_unicode_filenames"] diff --git a/Lib/ntpath.py b/Lib/ntpath.py index 35f266c69b..5dd5f1a177 100644 --- a/Lib/ntpath.py +++ b/Lib/ntpath.py @@ -11,10 +11,10 @@ import sys __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "basename","dirname","commonprefix","getsize","getmtime", - "getatime","getctime", "islink","exists","isdir","isfile","ismount", - "walk","expanduser","expandvars","normpath","abspath","splitunc", - "curdir","pardir","sep","pathsep","defpath","altsep","extsep", - "devnull","realpath","supports_unicode_filenames"] + "getatime","getctime", "islink","exists","lexists","isdir","isfile", + "ismount","walk","expanduser","expandvars","normpath","abspath", + "splitunc","curdir","pardir","sep","pathsep","defpath","altsep", + "extsep","devnull","realpath","supports_unicode_filenames"] # strings representing various path-related bits and pieces curdir = '.' diff --git a/Lib/os2emxpath.py b/Lib/os2emxpath.py index 5b1cb186e3..a841422404 100644 --- a/Lib/os2emxpath.py +++ b/Lib/os2emxpath.py @@ -10,10 +10,10 @@ import stat __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "basename","dirname","commonprefix","getsize","getmtime", - "getatime","getctime", "islink","exists","isdir","isfile","ismount", - "walk","expanduser","expandvars","normpath","abspath","splitunc", - "curdir","pardir","sep","pathsep","defpath","altsep","extsep", - "devnull","realpath","supports_unicode_filenames"] + "getatime","getctime", "islink","exists","lexists","isdir","isfile", + "ismount","walk","expanduser","expandvars","normpath","abspath", + "splitunc","curdir","pardir","sep","pathsep","defpath","altsep", + "extsep","devnull","realpath","supports_unicode_filenames"] # strings representing various path-related bits and pieces curdir = '.' diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 261e5a7db2..9eac6bc13e 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -15,8 +15,8 @@ import stat __all__ = ["normcase","isabs","join","splitdrive","split","splitext", "basename","dirname","commonprefix","getsize","getmtime", - "getatime","getctime","islink","exists","isdir","isfile","ismount", - "walk","expanduser","expandvars","normpath","abspath", + "getatime","getctime","islink","exists","lexists","isdir","isfile", + "ismount","walk","expanduser","expandvars","normpath","abspath", "samefile","sameopenfile","samestat", "curdir","pardir","sep","pathsep","defpath","altsep","extsep", "devnull","realpath","supports_unicode_filenames"] @@ -1692,6 +1692,8 @@ Extension modules Library ------- +- Bug #1266283: The new function "lexists" is now in os.path.__all__. + - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects the documented behavior: the function passed to the onerror() handler can now also be os.listdir. |