Skip to content

Commit 9e75357

Browse files
barneygalepicnixzAA-Turner
authored
Apply suggestions from code review
Co-authored-by: Bénédikt Tran <[email protected]> Co-authored-by: Adam Turner <[email protected]>
1 parent 8df17b4 commit 9e75357

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Doc/library/urllib.request.rst

Lines changed: 1 addition & 1 deletion
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 local
188+
The URL authority is discarded if it is 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

Lib/urllib/request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1643,7 +1643,7 @@ def data_open(self, req):
16431643
return addinfourl(io.BytesIO(data), headers, url)
16441644

16451645

1646-
# Code move from the old urllib module
1646+
# Code moved from the old urllib module
16471647

16481648
def url2pathname(url, *, require_scheme=False, resolve_netloc=False):
16491649
"""Convert the given file URL to a local file system path.

0 commit comments

Comments
 (0)