FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

GH-125866: Preserve Windows drive letter case in file URIs by barneygale · Pull Request #127138 · python/cpython · GitHub

/ cpython Public

GH-125866: Preserve Windows drive letter case in file URIs - #127138

Merged
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-125866-drive-upper
Nov 23, 2024
Merged

GH-125866: Preserve Windows drive letter case in file URIs#127138
barneygale merged 1 commit into
python:mainfrom
barneygale:gh-125866-drive-upper

Conversation

barneygale commented Nov 22, 2024
edited
Loading

Copy link
Copy Markdown
Contributor

Stop converting Windows drive letters to uppercase in urllib.request.pathname2url() and url2pathname(). This behaviour is unexpected and inconsistent with pathlib's file URI implementation.


📚 Documentation preview 📚: https://cpython-previews--127138.org.readthedocs.build/

Stop converting Windows drive letters to uppercase in
`urllib.request.pathname2url()` and `url2pathname()`. This behaviour is
unnecessary and inconsistent with pathlib's file URI implementation.
barneygale marked this pull request as ready for review November 22, 2024 05:18
barneygale requested a review from a team November 22, 2024 05:18

zooba left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

The RFC also says that case should be preserved up until it's being processed by the file system, so we shouldn't be changing it here. (I still wouldn't backport this change, due to the trivial impact apart from breaking anyone who wrote a case-sensitive test that currently passes!)

Copy link
Copy Markdown
Contributor Author

Agreed! And thanks for the review.

barneygale merged commit cc813e1 into python:main Nov 23, 2024
ebonnal pushed a commit to ebonnal/cpython that referenced this pull request Jan 12, 2025
…hon#127138)

Stop converting Windows drive letters to uppercase in
`urllib.request.pathname2url()` and `url2pathname()`. This behaviour is
unnecessary and inconsistent with pathlib's file URI implementation.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL