Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

GH-126212: Fix removal of slashes in file URIs on Windows#126214

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
barneygale merged 5 commits intopython:mainfrombarneygale:gh-126212
Nov 8, 2024

Conversation

@barneygale
Copy link
Contributor

@barneygalebarneygale commentedOct 31, 2024
edited by bedevere-appbot
Loading

Adjusturllib.request.pathname2url() andurl2pathname() so that they don't remove slashes from Windows DOS drive paths and URLs. There was no basis for this behaviour, and it conflicts with how UNC and POSIX paths are handled.

Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.
@barneygale
Copy link
ContributorAuthor

Hey@zooba, hope I'm not being rude with the ping, just wondering if you intend to review again? If so I'm happy to wait! Thanks

@zooba
Copy link
Member

It's not rude, but it's also not helpful :) Pings don't reach me any quicker than regular notifications.

This looks good to me. Thanks!

@barneygale
Copy link
ContributorAuthor

Thanks for the review! I pinged because you approved a closely-related PR at the same time, and I thought there might have been a mix-up between the two as you were so quick to reply initially. My mistake - I'm sorry for the noise. And thanks again.

@barneygalebarneygale merged commit54c63a3 intopython:mainNov 8, 2024
32 checks passed
@miss-islington-app
Copy link

Thanks@barneygale for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 8, 2024
…onGH-126214)Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.(cherry picked from commit54c63a3)Co-authored-by: Barney Gale <barney.gale@gmail.com>
@bedevere-app
Copy link

GH-126590 is a backport of this pull request to the3.13 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.13bugs and security fixes labelNov 8, 2024
miss-islington pushed a commit to miss-islington/cpython that referenced this pull requestNov 8, 2024
…onGH-126214)Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.(cherry picked from commit54c63a3)Co-authored-by: Barney Gale <barney.gale@gmail.com>
@bedevere-app
Copy link

GH-126591 is a backport of this pull request to the3.12 branch.

@bedevere-appbedevere-appbot removed the needs backport to 3.12only security fixes labelNov 8, 2024
barneygale added a commit that referenced this pull requestNov 8, 2024
…126214) (#126591)GH-126212: Fix removal of slashes in file URIs on Windows (GH-126214)Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.(cherry picked from commit54c63a3)Co-authored-by: Barney Gale <barney.gale@gmail.com>
barneygale added a commit that referenced this pull requestNov 8, 2024
…126214) (#126590)GH-126212: Fix removal of slashes in file URIs on Windows (GH-126214)Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.(cherry picked from commit54c63a3)Co-authored-by: Barney Gale <barney.gale@gmail.com>
picnixz pushed a commit to picnixz/cpython that referenced this pull requestDec 8, 2024
…on#126214)Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.
ebonnal pushed a commit to ebonnal/cpython that referenced this pull requestJan 12, 2025
…on#126214)Adjust `urllib.request.pathname2url()` and `url2pathname()` so that theydon't remove slashes from Windows DOS drive paths and URLs. There was nobasis for this behaviour, and it conflicts with how UNC and POSIX paths arehandled.
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@zoobazoobaAwaiting requested review from zooba

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@barneygale@zooba

[8]ページ先頭

©2009-2025 Movatter.jp