René's URL Explorer Experiment


Title: GH-126212: Fix removal of slashes in file URIs on Windows by barneygale · Pull Request #126214 · python/cpython · GitHub

Open Graph Title: GH-126212: Fix removal of slashes in file URIs on Windows by barneygale · Pull Request #126214 · python/cpython

X Title: GH-126212: Fix removal of slashes in file URIs on Windows by barneygale · Pull Request #126214 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Adjust urllib.request.pathname2url() and url2pathname() 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...

X Description: Adjust urllib.request.pathname2url() and url2pathname() 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...

Opengraph URL: https://github.com/python/cpython/pull/126214

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:d809213b-15a6-6436-2bd7-6e5d3c910da7
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idDD84:110357:19F1CC:21D854:6B023671
html-safe-nonce2973b9a400eaa69c3587cd5e9e266c1379defd31cf5a03f9780527c130720e42
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERDg0OjExMDM1NzoxOUYxQ0M6MjFEODU0OjZCMDIzNjcxIiwidmlzaXRvcl9pZCI6IjYyOTE3NTUwNTYwNzMxNjAzMDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac67d92a362b92a604351bee1633906101649db861655bd5f0ae5671dc3404b2ea
hovercard-subject-tagpull_request:2155240635
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/126214/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/758b2396a1569d03e6cc9d954423dbb2ea02b53fc17fb07933b99edfcacefb0c/python/cpython/pull/126214
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/758b2396a1569d03e6cc9d954423dbb2ea02b53fc17fb07933b99edfcacefb0c/python/cpython/pull/126214
og:image:altAdjust urllib.request.pathname2url() and url2pathname() 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...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebarneygale
hostnamegithub.com
expected-hostnamegithub.com
None87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456
turbo-cache-controlno-cache
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release423dbb54c5e7bfecc838eb387c1435eb3d0e760d
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/python/cpython/pull/126214#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126214
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126214
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/126214
Reloadhttps://github.com/python/cpython/pull/126214
Reloadhttps://github.com/python/cpython/pull/126214
pythonhttps://github.com/python
cpythonhttps://github.com/python/cpython
Codehttps://github.com/python/cpython
Issues5k+ (5k+)https://github.com/python/cpython/issues
Pull requests2.4k (2.4k)https://github.com/python/cpython/pulls
Actionshttps://github.com/python/cpython/actions
Projectshttps://github.com/python/cpython/projects
Security and qualityhttps://github.com/python/cpython/security
Insightshttps://github.com/python/cpython/insights
https://github.com/python/cpython
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-126212https://github.com/barneygale/cpython/tree/gh-126212
Conversationhttps://github.com/python/cpython/pull/126214
Commits5 (5)https://github.com/python/cpython/pull/126214/commits
Checkshttps://github.com/python/cpython/pull/126214/checks
Files changedhttps://github.com/python/cpython/pull/126214/files
GH-126212: Fix removal of slashes in file URIs on Windowshttps://github.com/python/cpython/pull/126214#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-126212https://github.com/barneygale/cpython/tree/gh-126212
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Oct 31, 2024https://github.com/python/cpython/pull/126214#issue-2625631448
Please reload this pagehttps://github.com/python/cpython/pull/126214
urllib.request.pathname2url() and url2pathname() remove slashes on Windows #126212https://github.com/python/cpython/issues/126212
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/barneygale
pythonGH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windowshttps://github.com/python/cpython/pull/126214/commits/e3a81cba0b0e1b169ba2fb43035190c3923eb108
e3a81cbhttps://github.com/python/cpython/pull/126214/commits/e3a81cba0b0e1b169ba2fb43035190c3923eb108
https://github.com/barneygale
barneygalehttps://github.com/barneygale
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Oct 31, 2024https://github.com/python/cpython/pull/126214#event-15021055617
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 31, 2024 https://github.com/python/cpython/pull/126214#ref-issue-2625616097
urllib.request.pathname2url() and url2pathname() remove slashes on Windows #126212 https://github.com/python/cpython/issues/126212
https://github.com/barneygale
barneygalehttps://github.com/barneygale
October 31, 2024 00:22https://github.com/python/cpython/pull/126214#event-15021348872
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 31, 2024https://github.com/python/cpython/pull/126214#event-15021349156
https://github.com/barneygale
barneygalehttps://github.com/barneygale
zoobahttps://github.com/zooba
October 31, 2024 00:22https://github.com/python/cpython/pull/126214#event-15021349283
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Oct 31, 2024 https://github.com/python/cpython/pull/126214#pullrequestreview-2408792309
View reviewed changes https://github.com/python/cpython/pull/126214/files/e3a81cba0b0e1b169ba2fb43035190c3923eb108
Lib/nturl2path.pyhttps://github.com/python/cpython/pull/126214/files/e3a81cba0b0e1b169ba2fb43035190c3923eb108#diff-dfd6b42c7038c17d5ca53114ad6db294c8144ed9083bd030677c668f2261cae3
Please reload this pagehttps://github.com/python/cpython/pull/126214
barneygalehttps://github.com/barneygale
October 31, 2024 18:43https://github.com/python/cpython/pull/126214#commits-pushed-7973aac
https://github.com/barneygale
url2pathname(): unquote before converting separatorshttps://github.com/python/cpython/pull/126214/commits/7973aac8ff43abb1999a2f0c8531e75b60712235
7973aachttps://github.com/python/cpython/pull/126214/commits/7973aac8ff43abb1999a2f0c8531e75b60712235
https://github.com/barneygale
Beautify codehttps://github.com/python/cpython/pull/126214/commits/8d313bf005d3fffb6e0c9bbe2b12fde75c21a55b
8d313bfhttps://github.com/python/cpython/pull/126214/commits/8d313bf005d3fffb6e0c9bbe2b12fde75c21a55b
https://github.com/barneygale
Preserve percent-encoded forward slashes.https://github.com/python/cpython/pull/126214/commits/d3687bb233316f66be8b4d83bb2b5d415be6792a
d3687bbhttps://github.com/python/cpython/pull/126214/commits/d3687bb233316f66be8b4d83bb2b5d415be6792a
https://github.com/barneygale
Restore comment :-)https://github.com/python/cpython/pull/126214/commits/53094156832fa91fa9a11520fe3a5a637f50be81
5309415https://github.com/python/cpython/pull/126214/commits/53094156832fa91fa9a11520fe3a5a637f50be81
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Nov 4, 2024 https://github.com/python/cpython/pull/126214#ref-issue-2631372299
urllib.request.url2pathname() mishandles colons in URLs on Windows #126367 https://github.com/python/cpython/issues/126367
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Nov 4, 2024https://github.com/python/cpython/pull/126214#issuecomment-2455270366
@zoobahttps://github.com/zooba
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/zooba
zoobahttps://github.com/zooba
Nov 8, 2024https://github.com/python/cpython/pull/126214#issuecomment-2464381862
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Nov 8, 2024https://github.com/python/cpython/pull/126214#issuecomment-2465252089
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/barneygale
barneygalehttps://github.com/barneygale
54c63a3https://github.com/python/cpython/commit/54c63a32d06cb5f07a66245c375eac7d7efb964a
Nov 8, 2024https://github.com/python/cpython/pull/126214#event-15219886357
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Nov 8, 2024https://github.com/python/cpython/pull/126214#event-15219887052
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Nov 8, 2024https://github.com/python/cpython/pull/126214#issuecomment-2465255125
@barneygalehttps://github.com/barneygale
Please reload this pagehttps://github.com/python/cpython/pull/126214
miss-islingtonhttps://github.com/miss-islington
Nov 8, 2024 https://github.com/python/cpython/pull/126214#ref-commit-71b4e16
https://github.com/barneygale
https://github.com/miss-islington
pythonGH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windows (https://github.com/miss-islington/cpython/commit/71b4e1656c258017d77680eeb12a66f752fddbae
pyth…https://github.com/python/cpython/pull/126214
71b4e16https://github.com/miss-islington/cpython/commit/71b4e1656c258017d77680eeb12a66f752fddbae
…onGH-126214https://github.com/python/cpython/pull/126214
54c63a3https://github.com/miss-islington/cpython/commit/54c63a32d06cb5f07a66245c375eac7d7efb964a
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 8, 2024https://github.com/python/cpython/pull/126214#issuecomment-2465255684
GH-126590https://github.com/python/cpython/pull/126590
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Nov 8, 2024https://github.com/python/cpython/pull/126214#event-15219890748
miss-islingtonhttps://github.com/miss-islington
Nov 8, 2024 https://github.com/python/cpython/pull/126214#ref-commit-4cc576f
https://github.com/barneygale
https://github.com/miss-islington
pythonGH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windows (https://github.com/miss-islington/cpython/commit/4cc576fafdcb4a4485667da5ced79b407bc5b93d
pyth…https://github.com/python/cpython/pull/126214
4cc576fhttps://github.com/miss-islington/cpython/commit/4cc576fafdcb4a4485667da5ced79b407bc5b93d
…onGH-126214https://github.com/python/cpython/pull/126214
54c63a3https://github.com/miss-islington/cpython/commit/54c63a32d06cb5f07a66245c375eac7d7efb964a
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Nov 8, 2024https://github.com/python/cpython/pull/126214#issuecomment-2465256009
GH-126591https://github.com/python/cpython/pull/126591
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.12 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.12%22
Nov 8, 2024https://github.com/python/cpython/pull/126214#event-15219897692
barneygalehttps://github.com/barneygale
Nov 8, 2024 https://github.com/python/cpython/pull/126214#ref-commit-5fb443d
https://github.com/miss-islington
https://github.com/barneygale
[3.12]https://github.com/python/cpython/commit/5fb443d6254d53f43acb0b39a7615d56f4fc7355
GH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windows (https://github.com/python/cpython/commit/5fb443d6254d53f43acb0b39a7615d56f4fc7355
GH-…https://github.com/python/cpython/pull/126214
5fb443dhttps://github.com/python/cpython/commit/5fb443d6254d53f43acb0b39a7615d56f4fc7355
…126214https://github.com/python/cpython/pull/126214
#126591https://github.com/python/cpython/pull/126591
GH-126212https://github.com/python/cpython/issues/126212
GH-126214https://github.com/python/cpython/pull/126214
54c63a3https://github.com/python/cpython/commit/54c63a32d06cb5f07a66245c375eac7d7efb964a
barneygalehttps://github.com/barneygale
Nov 8, 2024 https://github.com/python/cpython/pull/126214#ref-commit-20043d5
https://github.com/miss-islington
https://github.com/barneygale
[3.13]https://github.com/python/cpython/commit/20043d5cf4815028c4a1a75a109bf97e2feeb207
GH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windows (https://github.com/python/cpython/commit/20043d5cf4815028c4a1a75a109bf97e2feeb207
GH-…https://github.com/python/cpython/pull/126214
20043d5https://github.com/python/cpython/commit/20043d5cf4815028c4a1a75a109bf97e2feeb207
…126214https://github.com/python/cpython/pull/126214
#126590https://github.com/python/cpython/pull/126590
GH-126212https://github.com/python/cpython/issues/126212
GH-126214https://github.com/python/cpython/pull/126214
54c63a3https://github.com/python/cpython/commit/54c63a32d06cb5f07a66245c375eac7d7efb964a
https://github.com/ichard26
ichard26https://github.com/ichard26
Dec 7, 2024 https://github.com/python/cpython/pull/126214#ref-issue-2724055046
CPython 3.13.1 is breaking Windows CI pypa/pip#13104 https://github.com/pypa/pip/issues/13104
picnixzhttps://github.com/picnixz
Dec 8, 2024 https://github.com/python/cpython/pull/126214#ref-commit-2866578
https://github.com/barneygale
https://github.com/picnixz
pythonGH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windows (https://github.com/picnixz/cpython/commit/2866578b7fdb95d8f9c7aeddd7715b844f387c6f
pyth…https://github.com/python/cpython/pull/126214
2866578https://github.com/picnixz/cpython/commit/2866578b7fdb95d8f9c7aeddd7715b844f387c6f
…on#126214https://github.com/python/cpython/pull/126214
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Dec 8, 2024 https://github.com/python/cpython/pull/126214#ref-issue-2671439193
urlib.request has the wrong output? or is jupyter understanding msys2-contrib/cpython-mingw#182 https://github.com/msys2-contrib/cpython-mingw/issues/182
ebonnalhttps://github.com/ebonnal
Jan 12, 2025 https://github.com/python/cpython/pull/126214#ref-commit-aa42b83
https://github.com/barneygale
https://github.com/ebonnal
pythonGH-126212https://github.com/python/cpython/issues/126212
: Fix removal of slashes in file URIs on Windows (https://github.com/ebonnal/cpython/commit/aa42b83e06481caa64698b095d3a62e2eda01ebc
pyth…https://github.com/python/cpython/pull/126214
aa42b83https://github.com/ebonnal/cpython/commit/aa42b83e06481caa64698b095d3a62e2eda01ebc
…on#126214https://github.com/python/cpython/pull/126214
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Jul 19, 2025 https://github.com/python/cpython/pull/126214#ref-pullrequest-3141673157
Adjust path_to_url et al. to produce the same results on Python 3.14+ pypa/pip#13423 https://github.com/pypa/pip/pull/13423
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126214
https://github.com/zooba
zooba https://github.com/zooba
Please reload this pagehttps://github.com/python/cpython/pull/126214
Please reload this pagehttps://github.com/python/cpython/pull/126214
https://github.com/barneygale
https://github.com/zooba
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.