summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Bendersky <eliben@gmail.com>2011-04-16 15:28:42 +0300
committerEli Bendersky <eliben@gmail.com>2011-04-16 15:28:42 +0300
commitad72bb1aa8cab3003d8c89840509d9fad71a211c (patch)
tree1d6e320e4a8aafd7a754413a4ad68b52a45495ad
parentdf453fbb5fe24ae2e0141f4d7e568696457ffe4d (diff)
downloadcpython-git-ad72bb1aa8cab3003d8c89840509d9fad71a211c.tar.gz
Issue #11855: Apply missing formatting for urlretrieve
-rw-r--r--Doc/library/urllib.rst10
1 files changed, 5 insertions, 5 deletions
diff --git a/Doc/library/urllib.rst b/Doc/library/urllib.rst
index 9a6febceaa..7f97673eb8 100644
--- a/Doc/library/urllib.rst
+++ b/Doc/library/urllib.rst
@@ -167,15 +167,15 @@ High-level interface
the download is interrupted.
The *Content-Length* is treated as a lower bound: if there's more data to read,
- urlretrieve reads more data, but if less data is available, it raises the
- exception.
+ :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.
+ If no *Content-Length* header was supplied, :func:`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.
.. data:: _urlopener