diff options
author | Christoph Anton Mitterer <calestyo@scientia.org> | 2022-11-14 04:12:32 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-14 04:12:32 (GMT) |
commit | 367f552129341796d75fc4cc40edb49405235a2b (patch) | |
tree | 04ba5866ad2e28e7143be803eecf133c0f7e5847 /Lib/posixpath.py | |
parent | 1455c516fce829f8d46e4f15557afe8653e7e995 (diff) | |
download | cpython-367f552129341796d75fc4cc40edb49405235a2b.zip cpython-367f552129341796d75fc4cc40edb49405235a2b.tar.gz cpython-367f552129341796d75fc4cc40edb49405235a2b.tar.bz2 |
gh-96192: fix os.ismount() to use a path that is str or bytes (#96194)
Signed-off-by: Christoph Anton Mitterer <mail@christoph.anton.mitterer.name>
Co-authored-by: Eryk Sun <eryksun@gmail.com>
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
Diffstat (limited to 'Lib/posixpath.py')
-rw-r--r-- | Lib/posixpath.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/posixpath.py b/Lib/posixpath.py index 5e1ebe3..5b4d78b 100644 --- a/Lib/posixpath.py +++ b/Lib/posixpath.py @@ -195,6 +195,7 @@ def ismount(path): if stat.S_ISLNK(s1.st_mode): return False + path = os.fspath(path) if isinstance(path, bytes): parent = join(path, b'..') else: |