aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Python/symtable.c
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2025-04-10 20:58:04 +0100
committerGitHub <noreply@github.com>2025-04-10 19:58:04 +0000
commit66cdb2bd8ab93a4691bead7f5d1e54e5ca6895b4 (patch)
tree56a74cd71eac1a452b2efecdccf9b0ac1ed074f3 /Python/symtable.c
parenta214db0c5406254d293f33622ce2cbd8233b52a5 (diff)
downloadcpython-66cdb2bd8ab93a4691bead7f5d1e54e5ca6895b4.tar.gz
cpython-66cdb2bd8ab93a4691bead7f5d1e54e5ca6895b4.zip
GH-123599: `url2pathname()`: handle authority section in file URL (#126844)
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>
Diffstat (limited to 'Python/symtable.c')
0 files changed, 0 insertions, 0 deletions