8000 gh-117114: Add `isdevdrive` to `posixpath` by nineteendo · Pull Request #117115 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-117114: Add isdevdrive to posixpath #117115

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

Merged
merged 11 commits into from
Mar 25, 2024
Prev Previous commit
Next Next commit
Remove comment
  • Loading branch information
nineteendo committed Mar 22, 2024
commit 22f2c7985d642e47eb3d3a1b05db7319bc18f08e
1 change: 0 additions & 1 deletion Lib/ntpath.py
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,6 @@ def splitroot(p):
splitroot('C:///spam///ham') == ('C:', '/', '//spam///ham')
splitroot('Windows/notepad') == ('', '', 'Windows/notepad')
"""
# Split drive
p = os.fspath(p)
if isinstance(p, bytes):
sep = b'\\'
Expand Down
0