forked from python/cpython
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve news in light of pythonGH-127217
- Loading branch information
1 parent
5e1b65f
commit 5396ef2
Showing
2 changed files
with
4 additions
and
4 deletions.
There are no files selected for viewing
This file contains 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
6 changes: 3 additions & 3 deletions
6
Misc/NEWS.d/next/Library/2024-11-23-12-25-06.gh-issue-125866.wEOP66.rst
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
:func:`urllib.request.pathname2url` now adds an empty authority when | ||
generating a URL for an absolute POSIX path. For example, the path | ||
``/etc/hosts`` is converted to the scheme-less URL ``///etc/hosts``. As a | ||
result of this change, URLs without authorities are only generated for | ||
generating a URL for a path that begins with exactly one slash. For example, | ||
the path ``/etc/hosts`` is converted to the scheme-less URL ``///etc/hosts``. | ||
As a result of this change, URLs without authorities are only generated for | ||
relative paths. |