]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135205)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Jun 2025 12:38:59 +0000 (14:38 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Jun 2025 12:38:59 +0000 (12:38 +0000)
gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188)
(cherry picked from commit e004cf8fd5c006a7a1c60807a03066f4c43452e5)

Co-authored-by: Victor Stinner <vstinner@python.org>
Lib/os.py

index 266e40b56f6c81aa1f45213a0efcfdeceb3c962e..643a7b2f58176a7da111273becfe7856e7c77884 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -118,6 +118,7 @@ if _exists("_have_functions"):
     _add("HAVE_FCHMODAT",   "chmod")
     _add("HAVE_FCHOWNAT",   "chown")
     _add("HAVE_FSTATAT",    "stat")
+    _add("HAVE_LSTAT",      "lstat")
     _add("HAVE_FUTIMESAT",  "utime")
     _add("HAVE_LINKAT",     "link")
     _add("HAVE_MKDIRAT",    "mkdir")