aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorMichael Droettboom <mdboom@gmail.com>2023-02-08 09:34:24 -0500
committerGitHub <noreply@github.com>2023-02-08 14:34:24 +0000
commit86ebd5c3fa9ac0fba3b651f1d4abfca79614af5f (patch)
tree4e1cce7fb2ddc9e9a0cc248a789ff3c1b8080ca0 /Lib/posixpath.py
parent3a88de7a0af00872d9d57e1d98bc2f035cb15a1c (diff)
downloadcpython-86ebd5c3fa9ac0fba3b651f1d4abfca79614af5f.tar.gz
cpython-86ebd5c3fa9ac0fba3b651f1d4abfca79614af5f.zip
gh-101196: Make isdir/isfile/exists faster on Windows (GH-101324)
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 32b5d6e105d..e4f155e41a3 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -187,18 +187,6 @@ def dirname(p):
return head
-# Is a path a symbolic link?
-# This will always return false on systems where os.lstat doesn't exist.
-
-def islink(path):
- """Test whether a path is a symbolic link"""
- try:
- st = os.lstat(path)
- except (OSError, ValueError, AttributeError):
- return False
- return stat.S_ISLNK(st.st_mode)
-
-
# Is a path a junction?
def isjunction(path):