mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Issue #15154: Add "dir_fd" parameter to os.rmdir, remove "rmdir"
parameter from os.remove / os.unlink. Patch written by Georg Brandl. (I'm really looking forward to George getting commit privileges so I don't have to keep doing checkins on his behalf.)
This commit is contained in:
parent
b7eb563a2a
commit
b698d8e7e9
5 changed files with 97 additions and 52 deletions
|
@ -157,6 +157,7 @@ if _exists("_have_functions"):
|
|||
_add("HAVE_RENAMEAT", "rename")
|
||||
_add("HAVE_SYMLINKAT", "symlink")
|
||||
_add("HAVE_UNLINKAT", "unlink")
|
||||
_add("HAVE_UNLINKAT", "rmdir")
|
||||
_add("HAVE_UTIMENSAT", "utime")
|
||||
supports_dir_fd = _set
|
||||
|
||||
|
@ -214,10 +215,6 @@ if _exists("_have_functions"):
|
|||
_add("MS_WINDOWS", "stat")
|
||||
supports_follow_symlinks = _set
|
||||
|
||||
_set = set()
|
||||
_add("HAVE_UNLINKAT", "unlink")
|
||||
supports_remove_directory = _set
|
||||
|
||||
del _set
|
||||
del _have_functions
|
||||
del _globals
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue