diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2011-10-12 18:10:51 (GMT) |
commit | 62ab10a05acdc8bb45549e4df6fd6fb5f4623aab (patch) | |
tree | aa9923e821b0171ac71d11f9e8414fc594fcb61c /Doc/library/gettext.rst | |
parent | 5d6fbe82078fe67437755bccfa504dbbcf909a74 (diff) | |
download | cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.zip cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.gz cpython-62ab10a05acdc8bb45549e4df6fd6fb5f4623aab.tar.bz2 |
Replace mentions of IOError
Diffstat (limited to 'Doc/library/gettext.rst')
-rw-r--r-- | Doc/library/gettext.rst | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Doc/library/gettext.rst b/Doc/library/gettext.rst index 0fa022c..825311b 100644 --- a/Doc/library/gettext.rst +++ b/Doc/library/gettext.rst @@ -185,10 +185,13 @@ class can also install themselves in the built-in namespace as the function translation object from the cache; the actual instance data is still shared with the cache. - If no :file:`.mo` file is found, this function raises :exc:`IOError` if + If no :file:`.mo` file is found, this function raises :exc:`OSError` if *fallback* is false (which is the default), and returns a :class:`NullTranslations` instance if *fallback* is true. + .. versionchanged:: 3.3 + :exc:`IOError` used to be raised instead of :exc:`OSError`. + .. function:: install(domain, localedir=None, codeset=None, names=None) @@ -342,7 +345,7 @@ The entire set of key/value pairs are placed into a dictionary and set as the If the :file:`.mo` file's magic number is invalid, or if other problems occur while reading the file, instantiating a :class:`GNUTranslations` class can raise -:exc:`IOError`. +:exc:`OSError`. The following methods are overridden from the base class implementation: |