aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/code.py
diff options
context:
space:
mode:
authorBarney Gale <barney.gale@gmail.com>2025-05-05 18:03:42 +0100
committerGitHub <noreply@github.com>2025-05-05 17:03:42 +0000
commit8e08ac9f32d89bf387c75bb6d0710a7b59026b5b (patch)
tree2cd5c576ba496772d5b60802f1520da65e5e5114 /Lib/code.py
parent082dbf77884264a8470b1ea132cc458d0b5bf08a (diff)
downloadcpython-8e08ac9f32d89bf387c75bb6d0710a7b59026b5b.tar.gz
cpython-8e08ac9f32d89bf387c75bb6d0710a7b59026b5b.zip
GH-123599: `url2pathname()`: don't call `gethostbyname()` by default (#132610)
Follow-up to 66cdb2bd8ab93a4691bead7f5d1e54e5ca6895b4. Add *resolve_host* keyword-only argument to `url2pathname()`, defaulting to false. When set to true, we call `socket.gethostbyname()` to resolve the URL hostname. Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com> Co-authored-by: Steve Dower <steve.dower@microsoft.com>
Diffstat (limited to 'Lib/code.py')
0 files changed, 0 insertions, 0 deletions