]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135206)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 6 Jun 2025 12:36:50 +0000 (14:36 +0200)
committerGitHub <noreply@github.com>
Fri, 6 Jun 2025 12:36:50 +0000 (12:36 +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 36471155ce4fc3cd010964c3e47a47e5c79cc534..b4c9f84c36d565adb001d1921299066140016862 100644 (file)
--- a/Lib/os.py
+++ b/Lib/os.py
@@ -110,6 +110,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")