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
os.path.ismount() doesn't properly use byte-paths from an os.DirEntry #96192
Comments
|
|
|
Shall I provide a patch? |
JelleZijlstra
added a commit
that referenced
this issue
Nov 14, 2022
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>
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 <calestyo@scientia.org> 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>
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 <calestyo@scientia.org> 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>
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 <calestyo@scientia.org> 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>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


calestyo commentedAug 22, 2022
•
edited by bedevere-bot
Bug report
It seems that
os.path.ismount()doesn't properly use a bytes-path from anos.DirEntryobject (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
Linked PRs
Linked PRs
The text was updated successfully, but these errors were encountered: