-
-
Notifications
You must be signed in to change notification settings - Fork 32k
os.path.ismount() doesn't properly use byte-paths from an os.DirEntry #96192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
|
Shall I provide a patch? |
JelleZijlstra
added a commit
that referenced
this issue
Nov 14, 2022
Signed-off-by: Christoph Anton Mitterer <[email protected]> Co-authored-by: Eryk Sun <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 14, 2022
…ythonGH-96194) (cherry picked from commit 367f552) Co-authored-by: Christoph Anton Mitterer <[email protected]> Signed-off-by: Christoph Anton Mitterer <[email protected]> Co-authored-by: Eryk Sun <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
miss-islington
pushed a commit
to miss-islington/cpython
that referenced
this issue
Nov 14, 2022
…ythonGH-96194) (cherry picked from commit 367f552) Co-authored-by: Christoph Anton Mitterer <[email protected]> Signed-off-by: Christoph Anton Mitterer <[email protected]> Co-authored-by: Eryk Sun <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
This was referenced Nov 14, 2022
Thanks, looks like this has been fixed! |
miss-islington
added a commit
that referenced
this issue
Nov 30, 2022
(cherry picked from commit 367f552) Co-authored-by: Christoph Anton Mitterer <[email protected]> Signed-off-by: Christoph Anton Mitterer <[email protected]> Co-authored-by: Eryk Sun <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
JelleZijlstra
added a commit
that referenced
this issue
Jan 22, 2023
…H-96194) (#99456) gh-96192: fix os.ismount() to use a path that is str or bytes (GH-96194) (cherry picked from commit 367f552) Signed-off-by: Christoph Anton Mitterer <[email protected]> Co-authored-by: Christoph Anton Mitterer <[email protected]> Co-authored-by: Eryk Sun <[email protected]> Co-authored-by: Jelle Zijlstra <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Bug report
It seems that
os.path.ismount()
doesn't properly use a bytes-path from anos.DirEntry
object (despite both claiming to support/be PathLike).Take e.g. the following code, when called with a bytes
path
:That fails with:
See also https://discuss.python.org/t/bug-in-os-path-ismount-or-perhaps-os-direntry/18406
Your environment
Cheers,
Chris.
Linked PRs
The text was updated successfully, but these errors were encountered: