summaryrefslogtreecommitdiffstats
path: root/Doc/library/http.cookiejar.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-10-12 18:10:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-10-12 18:10:51 (GMT)
commit62ab10a05acdc8bb45549e4df6fd6fb5f4623aab (patch)
treeaa9923e821b0171ac71d11f9e8414fc594fcb61c /Doc/library/http.cookiejar.rst
parent5d6fbe82078fe67437755bccfa504dbbcf909a74 (diff)
downloadcpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.zip
cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.gz
cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.bz2
Replace mentions of IOError
Diffstat (limited to 'Doc/library/http.cookiejar.rst')
-rw-r--r--Doc/library/http.cookiejar.rst11
1 files changed, 9 insertions, 2 deletions
diff --git a/Doc/library/http.cookiejar.rst b/Doc/library/http.cookiejar.rst
index 9771496..1fe775f 100644
--- a/Doc/library/http.cookiejar.rst
+++ b/Doc/library/http.cookiejar.rst
@@ -40,7 +40,11 @@ The module defines the following exception:
.. exception:: LoadError
Instances of :class:`FileCookieJar` raise this exception on failure to load
- cookies from a file. :exc:`LoadError` is a subclass of :exc:`IOError`.
+ cookies from a file. :exc:`LoadError` is a subclass of :exc:`OSError`.
+
+ .. versionchanged:: 3.3
+ LoadError was made a subclass of :exc:`OSError` instead of
+ :exc:`IOError`.
The following classes are provided:
@@ -257,9 +261,12 @@ contained :class:`Cookie` objects.
Arguments are as for :meth:`save`.
The named file must be in the format understood by the class, or
- :exc:`LoadError` will be raised. Also, :exc:`IOError` may be raised, for
+ :exc:`LoadError` will be raised. Also, :exc:`OSError` may be raised, for
example if the file does not exist.
+ .. versionchanged:: 3.3
+ :exc:`IOError` used to be raised, it is now an alias of :exc:`OSError`.
+
.. method:: FileCookieJar.revert(filename=None, ignore_discard=False, ignore_expires=False)