cpython: 0f1199858714 (original) (raw)
Mercurial > cpython
changeset 69390:0f1199858714 3.2
Issue #11855: merge from 3.1 [#11855]
Eli Bendersky eliben@gmail.com | |
---|---|
date | Sat, 16 Apr 2011 15:34:29 +0300 |
parents | 033dd346df57(current diff)a6d9f9329070(diff) |
children | c49c595e4214 2596389a993d |
files | Doc/library/urllib.request.rst |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-)[+] [-] Doc/library/urllib.request.rst 10 |
line wrap: on
line diff
--- a/Doc/library/urllib.request.rst +++ b/Doc/library/urllib.request.rst @@ -1113,15 +1113,15 @@ some point in the future. the download is interrupted. The Content-Length is treated as a lower bound: if there's more data to read,
- :func:
urlretrieve
reads more data, but if less data is available, it raises - the exception.
You can still retrieve the downloaded data in this case, it is stored in the
:attr:
content
attribute of the exception instance.
- If no Content-Length header was supplied, urlretrieve can not check the size
- of the data it has downloaded, and just returns it. In this case you just have
- to assume that the download was successful.