Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 219cc77

Browse files
committed
Issue #11855: Apply missing formatting for urlretrieve
1 parent 7bba683 commit 219cc77

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

Doc/library/urllib.request.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,15 +120,15 @@ The :mod:`urllib.request` module defines the following functions:
120120
the download is interrupted.
121121

122122
The *Content-Length* is treated as a lower bound: if there's more data to read,
123-
urlretrieve reads more data, but if less data is available, it raises the
124-
exception.
123+
:func:`urlretrieve` reads more data, but if less data is available, it raises
124+
the exception.
125125

126126
You can still retrieve the downloaded data in this case, it is stored in the
127127
:attr:`content` attribute of the exception instance.
128128

129-
If no *Content-Length* header was supplied, urlretrieve can not check the size
130-
of the data it has downloaded, and just returns it. In this case you just have
131-
to assume that the download was successful.
129+
If no *Content-Length* header was supplied, :func:`urlretrieve` can not
130+
check the size of the data it has downloaded, and just returns it. In
131+
this case you just have to assume that the download was successful.
132132

133133
.. function:: urlcleanup()
134134

0 commit comments

Comments
 (0)