mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
Improve #19204: Improved cross-references in the urllib package documentation.
This commit is contained in:
commit
10e73babad
4 changed files with 30 additions and 25 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue