Replace mentions of IOError

This commit is contained in:
Antoine Pitrou 2011-10-12 20:10:51 +02:00
parent 5d6fbe8207
commit 62ab10a05a
17 changed files with 85 additions and 39 deletions

View file

@ -8,20 +8,23 @@
The :mod:`urllib.error` module defines the exception classes for exceptions
raised by :mod:`urllib.request`. The base exception class is :exc:`URLError`,
which inherits from :exc:`IOError`.
raised by :mod:`urllib.request`. The base exception class is :exc:`URLError`.
The following exceptions are raised by :mod:`urllib.error` as appropriate:
.. exception:: URLError
The handlers raise this exception (or derived exceptions) when they run into
a problem. It is a subclass of :exc:`IOError`.
a problem. It is a subclass of :exc:`OSError`.
.. attribute:: reason
The reason for this error. It can be a message string or another
exception instance such as :exc:`OSError`.
exception instance.
.. versionchanged:: 3.3
:exc:`URLError` has been made a subclass of :exc:`OSError` instead
of :exc:`IOError`.
.. exception:: HTTPError