SIGN IN SIGN UP

[3.12] GH-126212: Fix removal of slashes in file URIs on Windows (GH-126214) (#126591)

GH-126212: Fix removal of slashes in file URIs on Windows (GH-126214)

Adjust `urllib.request.pathname2url()` and `url2pathname()` so that they
don't remove slashes from Windows DOS drive paths and URLs. There was no
basis for this behaviour, and it conflicts with how UNC and POSIX paths are
handled.
(cherry picked from commit 54c63a32d06cb5f07a66245c375eac7d7efb964a)

Co-authored-by: Barney Gale <barney.gale@gmail.com>
M
Miss Islington (bot) committed
5fb443d6254d53f43acb0b39a7615d56f4fc7355
Parent: 69849ad
Committed by GitHub <noreply@github.com> on 11/8/2024, 5:21:42 PM