summaryrefslogtreecommitdiffstats
path: root/Doc/library/urllib.error.rst
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2013-10-13 17:07:51 (GMT)
committerSerhiy Storchaka <storchaka@gmail.com>2013-10-13 17:07:51 (GMT)
commit10e73babad7cd64192a563b67eaa11f73cd181de (patch)
tree05bb3995b129c2c9679fff5ae11645395e6821f0 /Doc/library/urllib.error.rst
parentef1605afa8b55069c39bb3394cc6ee2b3f88a987 (diff)
parent5e1c053f0c024d53a8618937d6cfbc612d253bdd (diff)
downloadcpython-10e73babad7cd64192a563b67eaa11f73cd181de.zip
cpython-10e73babad7cd64192a563b67eaa11f73cd181de.tar.gz
cpython-10e73babad7cd64192a563b67eaa11f73cd181de.tar.bz2
Improve #19204: Improved cross-references in the urllib package documentation.
Diffstat (limited to 'Doc/library/urllib.error.rst')
-rw-r--r--Doc/library/urllib.error.rst8
1 files changed, 5 insertions, 3 deletions
diff --git a/Doc/library/urllib.error.rst b/Doc/library/urllib.error.rst
index 7bd04b1..9fb58f5 100644
--- a/Doc/library/urllib.error.rst
+++ b/Doc/library/urllib.error.rst
@@ -31,8 +31,9 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate:
Though being an exception (a subclass of :exc:`URLError`), an
:exc:`HTTPError` can also function as a non-exceptional file-like return
- value (the same thing that :func:`urlopen` returns). This is useful when
- handling exotic HTTP errors, such as requests for authentication.
+ value (the same thing that :func:`~urllib.request.urlopen` returns). This
+ is useful when handling exotic HTTP errors, such as requests for
+ authentication.
.. attribute:: code
@@ -54,7 +55,8 @@ The following exceptions are raised by :mod:`urllib.error` as appropriate:
.. exception:: ContentTooShortError(msg, content)
- This exception is raised when the :func:`urlretrieve` function detects that
+ This exception is raised when the :func:`~urllib.request.urlretrieve`
+ function detects that
the amount of the downloaded data is less than the expected amount (given by
the *Content-Length* header). The :attr:`content` attribute stores the
downloaded (and supposedly truncated) data.