Skip to content

Commit 4ec391f

Browse files
committed
Terminology
1 parent 1bff8b9 commit 4ec391f

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

Doc/library/pathlib.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -872,7 +872,7 @@ conforming to :rfc:`8089`.
872872
.. versionadded:: 3.13
873873

874874
.. versionchanged:: next
875-
The URL authority is discarded if it matches the machine hostname.
875+
The URL authority is discarded if it matches the local hostname.
876876
Otherwise, if the authority isn't empty or ``localhost``, then on
877877
Windows a UNC path is returned (as before), and on other platforms a
878878
:exc:`ValueError` is raised.

Doc/library/urllib.request.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ The :mod:`urllib.request` module defines the following functions:
185185
value should include the prefix; a :exc:`~urllib.error.URLError` is raised
186186
if it doesn't.
187187

188-
The URL authority is discarded if it empty, ``localhost``, or the current
188+
The URL authority is discarded if it empty, ``localhost``, or the local
189189
hostname. Otherwise, if *resolve_netloc* is set to true, the authority is
190190
resolved using :func:`socket.gethostbyname`, and discarded if it matches a
191191
local IP address. If the authority is still unhandled, then on Windows a
@@ -205,7 +205,7 @@ The :mod:`urllib.request` module defines the following functions:
205205
:exc:`OSError` exception to be raised on Windows.
206206

207207
.. versionchanged:: next
208-
The URL authority is discarded if it matches the machine hostname.
208+
The URL authority is discarded if it matches the local hostname.
209209
Otherwise, if the authority isn't empty or ``localhost``, then on
210210
Windows a UNC path is returned (as before), and on other platforms a
211211
:exc:`~urllib.error.URLError` is raised.

Misc/NEWS.d/next/Library/2024-11-14-21-17-48.gh-issue-126838.Yr5vKF.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Fix issue where :func:`urllib.request.url2pathname` mishandled file URLs with
22
authorities. The process now works as follows:
33

44
1. Discard authority if it is empty or ``localhost``; otherwise
5-
2. (New) Discard authority if it matches the current hostname; otherwise
5+
2. (New) Discard authority if it matches the local hostname; otherwise
66
3. (New) If the new *resolve_netloc* keyword-only argument is set to true,
77
discard authority if it resolves to a local IP address; otherwise
88
4. On Windows, return a UNC path; otherwise

0 commit comments

Comments
 (0)