aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/posixpath.py
diff options
context:
space:
mode:
authorNice Zombies <nineteendo19d0@gmail.com>2024-03-25 23:55:11 +0100
committerGitHub <noreply@github.com>2024-03-25 22:55:11 +0000
commit0821923aa979a72464c5da8dfa53a719bba5801c (patch)
tree1486b42a70c2cfbbc230ee56a9812b164754ea66 /Lib/posixpath.py
parentc2276176d543a2fc2d57709c2787f99850fbb073 (diff)
downloadcpython-0821923aa979a72464c5da8dfa53a719bba5801c.tar.gz
cpython-0821923aa979a72464c5da8dfa53a719bba5801c.zip
gh-117114: Make os.path.isdevdrive available on all platforms (GH-117115)
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r--Lib/posixpath.py22
1 files changed, 1 insertions, 21 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py
index 33943b44036..4fc02be69bd 100644
--- a/Lib/posixpath.py
+++ b/Lib/posixpath.py
@@ -35,7 +35,7 @@ __all__ = ["normcase","isabs","join","splitdrive","splitroot","split","splitext"
"samefile","sameopenfile","samestat",
"curdir","pardir","sep","pathsep","defpath","altsep","extsep",
"devnull","realpath","supports_unicode_filenames","relpath",
- "commonpath", "isjunction"]
+ "commonpath", "isjunction","isdevdrive"]
def _get_sep(path):
@@ -187,26 +187,6 @@ def dirname(p):
return head
-# Is a path a junction?
-
-def isjunction(path):
- """Test whether a path is a junction
- Junctions are not a part of posix semantics"""
- os.fspath(path)
- return False
-
-
-# Being true for dangling symbolic links is also useful.
-
-def lexists(path):
- """Test whether a path exists. Returns True for broken symbolic links"""
- try:
- os.lstat(path)
- except (OSError, ValueError):
- return False
- return True
-
-
# Is a path a mount point?
# (Does this work for all UNIXes? Is it even guaranteed to work by Posix?)