From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 6 Jun 2025 12:38:59 +0000 (+0200) Subject: [3.14] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135205) X-Git-Tag: v3.14.0b3~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e2e02eec9b8d16337fb48f32eeddc535e4c07cb;p=thirdparty%2FPython%2Fcpython.git [3.14] gh-134993: Add os.lstat() to os.supports_dir_fd (GH-135188) (#135205) 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 266e40b56f6c..643a7b2f5817 100644 --- 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")