8000 GH-120423: `pathname2url()`: handle forward slashes in Windows paths by barneygale · Pull Request #126593 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

GH-120423: pathname2url(): handle forward slashes in Windows paths #126593

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 3 commits into from
Nov 12, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix comment
  • Loading branch information
barneygale committed Nov 8, 2024
commit 3198639185d21c2545fb52e61433633267991361
2 changes: 1 addition & 1 deletion Lib/nturl2path.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def pathname2url(p):
elif p[1:2] != ':':
raise OSError('Bad path: ' + p)
if not ':' in p:
# No drive specifier, just convert slashes and quote the name
# No drive specifier, just quote the name
return urllib.parse.quote(p)
comp = p.split(':', maxsplit=2)
if len(comp) != 2 or len(comp[0]) > 1:
Expand Down
Loading
0