René's URL Explorer Experiment


Title: GH-126205: Fix conversion of UNC paths to file URIs by barneygale · Pull Request #126208 · python/cpython · GitHub

Open Graph Title: GH-126205: Fix conversion of UNC paths to file URIs by barneygale · Pull Request #126208 · python/cpython

X Title: GH-126205: Fix conversion of UNC paths to file URIs by barneygale · Pull Request #126208 · python/cpython

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

Open Graph Description: File URIs for Windows UNC paths should begin with two slashes, not four - see issue. Issue: urllib.request.pathname2url() mishandles UNC paths #126205

X Description: File URIs for Windows UNC paths should begin with two slashes, not four - see issue. Issue: urllib.request.pathname2url() mishandles UNC paths #126205

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

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:70f0a8d9-da78-c3c4-136d-b62763f5c671
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idA580:AC3D5:3B4B5C:4E17F8:6B023A50
html-safe-nonceed640dcce722514431787d8a8254006c8786aea9d448c96b8eae93524ae57c14
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBNTgwOkFDM0Q1OjNCNEI1Qzo0RTE3Rjg6NkIwMjNBNTAiLCJ2aXNpdG9yX2lkIjoiNTI4MjYzMTk0Mjc1NDQxNzIzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacff3d3ad08e2669d70f96b739d0f03cd61311efb827a2b559ef0af3f9cd18bbee
hovercard-subject-tagpull_request:2154984253
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/126208/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1da5803064be9da4f4e4e972344cb6c70232d2b196ba505f225a02f5cbdb208f/python/cpython/pull/126208
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1da5803064be9da4f4e4e972344cb6c70232d2b196ba505f225a02f5cbdb208f/python/cpython/pull/126208
og:image:altFile URIs for Windows UNC paths should begin with two slashes, not four - see issue. Issue: urllib.request.pathname2url() mishandles UNC paths #126205
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/126208#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F126208
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%2F126208
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/126208
Reloadhttps://github.com/python/cpython/pull/126208
Reloadhttps://github.com/python/cpython/pull/126208
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-126205https://github.com/barneygale/cpython/tree/gh-126205
Conversationhttps://github.com/python/cpython/pull/126208
Commits2 (2)https://github.com/python/cpython/pull/126208/commits
Checkshttps://github.com/python/cpython/pull/126208/checks
Files changedhttps://github.com/python/cpython/pull/126208/files
GH-126205: Fix conversion of UNC paths to file URIshttps://github.com/python/cpython/pull/126208#top
barneygalehttps://github.com/barneygale
python:mainhttps://github.com/python/cpython/tree/main
barneygale:gh-126205https://github.com/barneygale/cpython/tree/gh-126205
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Oct 30, 2024https://github.com/python/cpython/pull/126208#issue-2625312513
Please reload this pagehttps://github.com/python/cpython/pull/126208
urllib.request.pathname2url() mishandles UNC paths #126205https://github.com/python/cpython/issues/126205
Please reload this pagehttps://github.com/python/cpython/pull/126208
https://github.com/barneygale
pythonGH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIshttps://github.com/python/cpython/pull/126208/commits/76025e0779a5e3bd34cdbf08dbd9a138bf42150a
76025e0https://github.com/python/cpython/pull/126208/commits/76025e0779a5e3bd34cdbf08dbd9a138bf42150a
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 30, 2024https://github.com/python/cpython/pull/126208#event-15018066253
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 30, 2024 https://github.com/python/cpython/pull/126208#ref-issue-2625291535
urllib.request.pathname2url() mishandles UNC paths #126205 https://github.com/python/cpython/issues/126205
https://github.com/barneygale
Fix missed test case.https://github.com/python/cpython/pull/126208/commits/9c2bf95b054a9727bbedd9d9bc7e5b059a4a849e
9c2bf95https://github.com/python/cpython/pull/126208/commits/9c2bf95b054a9727bbedd9d9bc7e5b059a4a849e
https://github.com/barneygale
barneygalehttps://github.com/barneygale
October 30, 2024 21:02https://github.com/python/cpython/pull/126208#event-15018285802
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 30, 2024https://github.com/python/cpython/pull/126208#event-15018286276
https://github.com/barneygale
barneygalehttps://github.com/barneygale
zoobahttps://github.com/zooba
October 30, 2024 21:02https://github.com/python/cpython/pull/126208#event-15018287171
https://github.com/zooba
zoobahttps://github.com/zooba
Oct 30, 2024 https://github.com/python/cpython/pull/126208#pullrequestreview-2406415935
View reviewed changes https://github.com/python/cpython/pull/126208/files/9c2bf95b054a9727bbedd9d9bc7e5b059a4a849e
Lib/test/test_urllib.pyhttps://github.com/python/cpython/pull/126208/files/9c2bf95b054a9727bbedd9d9bc7e5b059a4a849e#diff-111958b1956c05d043a3da3bcf638cff888dff68cddd71f7eeae257fc6080dcb
Please reload this pagehttps://github.com/python/cpython/pull/126208
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
awaiting core review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20core%20review%22
Oct 30, 2024https://github.com/python/cpython/pull/126208#event-15019123035
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Oct 30, 2024https://github.com/python/cpython/pull/126208#issuecomment-2448573110
Please reload this pagehttps://github.com/python/cpython/pull/126208
https://github.com/barneygale
barneygalehttps://github.com/barneygale
951cb2chttps://github.com/python/cpython/commit/951cb2c369e8b8fb9f93662658391a53fd727787
Oct 30, 2024https://github.com/python/cpython/pull/126208#event-15020155651
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 30, 2024https://github.com/python/cpython/pull/126208#issuecomment-2448620241
@barneygalehttps://github.com/barneygale
Please reload this pagehttps://github.com/python/cpython/pull/126208
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting merge https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20merge%22
Oct 30, 2024https://github.com/python/cpython/pull/126208#event-15020155971
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
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/126208#event-15040413138
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 31, 2024https://github.com/python/cpython/pull/126208#issuecomment-2450270381
@barneygalehttps://github.com/barneygale
Please reload this pagehttps://github.com/python/cpython/pull/126208
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Oct 31, 2024https://github.com/python/cpython/pull/126208#issuecomment-2450270464
@barneygalehttps://github.com/barneygale
Please reload this pagehttps://github.com/python/cpython/pull/126208
miss-islingtonhttps://github.com/miss-islington
Oct 31, 2024 https://github.com/python/cpython/pull/126208#ref-commit-63e1151
https://github.com/barneygale
https://github.com/miss-islington
pythonGH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIs (https://github.com/miss-islington/cpython/commit/63e1151e89c41c11a3483aeb7a8aa31dfdbc5bfe
pythonGH-1…https://github.com/python/cpython/pull/126208
63e1151https://github.com/miss-islington/cpython/commit/63e1151e89c41c11a3483aeb7a8aa31dfdbc5bfe
…26208https://github.com/python/cpython/pull/126208
951cb2chttps://github.com/miss-islington/cpython/commit/951cb2c369e8b8fb9f93662658391a53fd727787
miss-islingtonhttps://github.com/miss-islington
Oct 31, 2024 https://github.com/python/cpython/pull/126208#ref-commit-1e81eb8
https://github.com/barneygale
https://github.com/miss-islington
pythonGH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIs (https://github.com/miss-islington/cpython/commit/1e81eb845c53236b99d6e965f85386213e697bfe
pythonGH-1…https://github.com/python/cpython/pull/126208
1e81eb8https://github.com/miss-islington/cpython/commit/1e81eb845c53236b99d6e965f85386213e697bfe
…26208https://github.com/python/cpython/pull/126208
951cb2chttps://github.com/miss-islington/cpython/commit/951cb2c369e8b8fb9f93662658391a53fd727787
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 31, 2024https://github.com/python/cpython/pull/126208#issuecomment-2450271244
GH-126248https://github.com/python/cpython/pull/126248
3.12 branchhttps://github.com/python/cpython/tree/3.12
Please reload this pagehttps://github.com/python/cpython/pull/126208
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
Oct 31, 2024https://github.com/python/cpython/pull/126208#event-15040421338
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Oct 31, 2024https://github.com/python/cpython/pull/126208#issuecomment-2450271397
GH-126249https://github.com/python/cpython/pull/126249
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/126208
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
Oct 31, 2024https://github.com/python/cpython/pull/126208#event-15040423752
barneygalehttps://github.com/barneygale
Oct 31, 2024 https://github.com/python/cpython/pull/126208#ref-commit-588da2e
https://github.com/miss-islington
https://github.com/barneygale
[3.13]https://github.com/python/cpython/commit/588da2e26a986cb94d9e2aee57f6ecd965adf918
GH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIs (https://github.com/python/cpython/commit/588da2e26a986cb94d9e2aee57f6ecd965adf918
GH-126208https://github.com/python/cpython/pull/126208
) (https://github.com/python/cpython/commit/588da2e26a986cb94d9e2aee57f6ecd965adf918
588da2ehttps://github.com/python/cpython/commit/588da2e26a986cb94d9e2aee57f6ecd965adf918
#126249https://github.com/python/cpython/pull/126249
GH-126205https://github.com/python/cpython/issues/126205
GH-126208https://github.com/python/cpython/pull/126208
951cb2chttps://github.com/python/cpython/commit/951cb2c369e8b8fb9f93662658391a53fd727787
barneygalehttps://github.com/barneygale
Oct 31, 2024 https://github.com/python/cpython/pull/126208#ref-commit-78f307f
https://github.com/miss-islington
https://github.com/barneygale
[3.12]https://github.com/python/cpython/commit/78f307f39e6d3f4ebb172140945ad2ec1ee10811
GH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIs (https://github.com/python/cpython/commit/78f307f39e6d3f4ebb172140945ad2ec1ee10811
GH-126208https://github.com/python/cpython/pull/126208
) (https://github.com/python/cpython/commit/78f307f39e6d3f4ebb172140945ad2ec1ee10811
78f307fhttps://github.com/python/cpython/commit/78f307f39e6d3f4ebb172140945ad2ec1ee10811
#126248https://github.com/python/cpython/pull/126248
GH-126205https://github.com/python/cpython/issues/126205
GH-126208https://github.com/python/cpython/pull/126208
951cb2chttps://github.com/python/cpython/commit/951cb2c369e8b8fb9f93662658391a53fd727787
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Nov 8, 2024 https://github.com/python/cpython/pull/126208#ref-pullrequest-2644633937
GH-120423: pathname2url(): handle forward slashes in Windows paths #126593 https://github.com/python/cpython/pull/126593
https://github.com/ichard26
ichard26https://github.com/ichard26
Dec 7, 2024 https://github.com/python/cpython/pull/126208#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/126208#ref-commit-68c151c
https://github.com/barneygale
https://github.com/picnixz
pythonGH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIs (https://github.com/picnixz/cpython/commit/68c151c80037f90029fc07e26a929f7dffba031c
python#126208https://github.com/python/cpython/pull/126208
68c151chttps://github.com/picnixz/cpython/commit/68c151c80037f90029fc07e26a929f7dffba031c
https://github.com/python/cpython/pull/126208
ebonnalhttps://github.com/ebonnal
Jan 12, 2025 https://github.com/python/cpython/pull/126208#ref-commit-132ce80
https://github.com/barneygale
https://github.com/ebonnal
pythonGH-126205https://github.com/python/cpython/issues/126205
: Fix conversion of UNC paths to file URIs (https://github.com/ebonnal/cpython/commit/132ce80a3e9bd8454ef067c2038b24e9eef853d8
python#126208https://github.com/python/cpython/pull/126208
132ce80https://github.com/ebonnal/cpython/commit/132ce80a3e9bd8454ef067c2038b24e9eef853d8
https://github.com/python/cpython/pull/126208
https://github.com/barneygale
barneygalehttps://github.com/barneygale
Jul 19, 2025 https://github.com/python/cpython/pull/126208#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%2F126208
https://github.com/zooba
zooba https://github.com/zooba
https://github.com/python/cpython/pull/126208/files/9c2bf95b054a9727bbedd9d9bc7e5b059a4a849e
Please reload this pagehttps://github.com/python/cpython/pull/126208
Please reload this pagehttps://github.com/python/cpython/pull/126208
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.