File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff 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
10031020uuid
10041021----
You can’t perform that action at this time.
0 commit comments