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

Skip to content

Commit 3384e54

Browse files
committed
Issue #11855: merge from 3.1
2 parents f05c139 + 219cc77 commit 3384e54

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
@@ -1113,15 +1113,15 @@ some point in the future.
11131113
the download is interrupted.
11141114

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

11191119
You can still retrieve the downloaded data in this case, it is stored in the
11201120
:attr:`content` attribute of the exception instance.
11211121

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

11261126
.. function:: urlcleanup()
11271127

0 commit comments

Comments
 (0)