From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 6 Jun 2025 12:36:50 +0000 (+0200) Subject: [3.13] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135206) X-Git-Tag: v3.13.5~23 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=793de28b4034cd076343ed98d420987ee3ac8756;p=thirdparty%2FPython%2Fcpython.git [3.13] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135206) gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (cherry picked from commit e004cf8fd5c006a7a1c60807a03066f4c43452e5) Co-authored-by: Victor Stinner --- diff --git a/Lib/os.py b/Lib/os.py index 36471155ce4f..b4c9f84c36d5 100644 --- 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")