mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
In `urllib.request.url2pathname()`, if the authority resolves to the current host, discard it. If an authority is present but resolves somewhere else, then on Windows we return a UNC path (as before), and on other platforms we raise `URLError`. Affects `pathlib.Path.from_uri()` in the same way. Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| support | ||
| __init__.py | ||
| test_copy.py | ||
| test_join.py | ||
| test_join_posix.py | ||
| test_join_windows.py | ||
| test_pathlib.py | ||
| test_read.py | ||
| test_write.py | ||