File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -187,7 +187,7 @@ The :mod:`urllib.request` module defines the following functions:
187187
188188 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
190- resolved using :func: `socket.gethostbyname `, and discarded if it matches a
190+ 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
192192 UNC path is returned, and on other platforms a
193193 :exc: `~urllib.error.URLError ` is raised.
Original file line number Diff line number Diff line change @@ -1230,7 +1230,7 @@ urllib
12301230
12311231 - Accept a complete URL when the new *require_scheme * argument is set to
12321232 true.
1233- - Discard URL authority if it matches the current hostname.
1233+ - Discard URL authority if it matches the local hostname.
12341234 - Discard URL authority if it resolves to a local IP address when the new
12351235 *resolve_netloc * argument is set to true.
12361236 - Raise :exc: `~urllib.error.URLError ` if a URL authority isn't local,
You can’t perform that action at this time.
0 commit comments