Skip to content

GH-125866: Support complete "file:" URLs in urllib#132378

Merged
barneygale merged 14 commits intopython:mainfrom
barneygale:gh-125866-again
Apr 14, 2025
Merged

GH-125866: Support complete "file:" URLs in urllib#132378
barneygale merged 14 commits intopython:mainfrom
barneygale:gh-125866-again

Conversation

@barneygale
Copy link
Contributor

@barneygale barneygale commented Apr 10, 2025

Add optional add_scheme argument to urllib.request.pathname2url(); when set to true, a complete URL is returned. Likewise add optional require_scheme argument to url2pathname(); when set to true, a complete URL is accepted.


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

Loading
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.

4 participants