Kaydet (Commit) f0de6a18 authored tarafından Georg Brandl's avatar Georg Brandl

Bug #1266283: lexists() is not exported from os.path

üst f21a5f77
...@@ -5,7 +5,7 @@ from stat import * ...@@ -5,7 +5,7 @@ from stat import *
__all__ = ["normcase","isabs","join","splitdrive","split","splitext", __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime", "basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime", "islink","exists","isdir","isfile", "getatime","getctime", "islink","exists","lexists","isdir","isfile",
"walk","expanduser","expandvars","normpath","abspath", "walk","expanduser","expandvars","normpath","abspath",
"curdir","pardir","sep","pathsep","defpath","altsep","extsep", "curdir","pardir","sep","pathsep","defpath","altsep","extsep",
"devnull","realpath","supports_unicode_filenames"] "devnull","realpath","supports_unicode_filenames"]
......
...@@ -11,10 +11,10 @@ import sys ...@@ -11,10 +11,10 @@ import sys
__all__ = ["normcase","isabs","join","splitdrive","split","splitext", __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime", "basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime", "islink","exists","isdir","isfile","ismount", "getatime","getctime", "islink","exists","lexists","isdir","isfile",
"walk","expanduser","expandvars","normpath","abspath","splitunc", "ismount","walk","expanduser","expandvars","normpath","abspath",
"curdir","pardir","sep","pathsep","defpath","altsep","extsep", "splitunc","curdir","pardir","sep","pathsep","defpath","altsep",
"devnull","realpath","supports_unicode_filenames"] "extsep","devnull","realpath","supports_unicode_filenames"]
# strings representing various path-related bits and pieces # strings representing various path-related bits and pieces
curdir = '.' curdir = '.'
......
...@@ -10,10 +10,10 @@ import stat ...@@ -10,10 +10,10 @@ import stat
__all__ = ["normcase","isabs","join","splitdrive","split","splitext", __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime", "basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime", "islink","exists","isdir","isfile","ismount", "getatime","getctime", "islink","exists","lexists","isdir","isfile",
"walk","expanduser","expandvars","normpath","abspath","splitunc", "ismount","walk","expanduser","expandvars","normpath","abspath",
"curdir","pardir","sep","pathsep","defpath","altsep","extsep", "splitunc","curdir","pardir","sep","pathsep","defpath","altsep",
"devnull","realpath","supports_unicode_filenames"] "extsep","devnull","realpath","supports_unicode_filenames"]
# strings representing various path-related bits and pieces # strings representing various path-related bits and pieces
curdir = '.' curdir = '.'
......
...@@ -15,8 +15,8 @@ import stat ...@@ -15,8 +15,8 @@ import stat
__all__ = ["normcase","isabs","join","splitdrive","split","splitext", __all__ = ["normcase","isabs","join","splitdrive","split","splitext",
"basename","dirname","commonprefix","getsize","getmtime", "basename","dirname","commonprefix","getsize","getmtime",
"getatime","getctime","islink","exists","isdir","isfile","ismount", "getatime","getctime","islink","exists","lexists","isdir","isfile",
"walk","expanduser","expandvars","normpath","abspath", "ismount","walk","expanduser","expandvars","normpath","abspath",
"samefile","sameopenfile","samestat", "samefile","sameopenfile","samestat",
"curdir","pardir","sep","pathsep","defpath","altsep","extsep", "curdir","pardir","sep","pathsep","defpath","altsep","extsep",
"devnull","realpath","supports_unicode_filenames"] "devnull","realpath","supports_unicode_filenames"]
......
...@@ -1692,6 +1692,8 @@ Extension modules ...@@ -1692,6 +1692,8 @@ Extension modules
Library Library
------- -------
- Bug #1266283: The new function "lexists" is now in os.path.__all__.
- Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affects
the documented behavior: the function passed to the onerror() the documented behavior: the function passed to the onerror()
handler can now also be os.listdir. handler can now also be os.listdir.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment