Skip to content

Commit b5e5460

Browse files
committed
Update whatsnew
1 parent b4fa510 commit b5e5460

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

Doc/whatsnew/3.14.rst

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,24 @@ urllib
998998
* Upgrade HTTP digest authentication algorithm for :mod:`urllib.request` by
999999
supporting SHA-256 digest authentication as specified in :rfc:`7616`.
10001000
(Contributed by Calvin Bui in :gh:`128193`.)
1001+
* Improve support for ``file:`` URLs.
10011002

1003+
In :func:`urllib.request.url2pathname`:
1004+
1005+
- Discard URL authorities that resolve to ``localhost``.
1006+
- Raise :exc:`~urllib.error.URLError` if a URL authority doesn't resolve
1007+
to ``localhost``, except on Windows where we return a UNC path.
1008+
1009+
In :func:`urllib.request.pathname2url`:
1010+
1011+
- Include an empty URL authority when a path begins with a slash. For
1012+
example, the path ``/etc/hosts`` is converted to the URL ``///etc/hosts``.
1013+
1014+
On Windows, drive letters are no longer converted to uppercase, and ``:``
1015+
characters not following a drive letter no longer cause an :exc:`OSError`
1016+
exception to be raised.
1017+
1018+
(Contributed by Barney Gale in :gh:`125866`.)
10021019

10031020
uuid
10041021
----

0 commit comments

Comments
 (0)