diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-10-28 19:17:51 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-10-28 19:17:51 (GMT) |
commit | be8d06f5234ace688520bfea9139e68214788910 (patch) | |
tree | f478b190be5b947c2ccad48bf148a657a52a8267 /Doc/library/gettext.rst | |
parent | b7374d0271765f0abeb92f8d87b0ce9b0c2be3df (diff) | |
download | cpython-be8d06f5234ace688520bfea9139e68214788910.zip cpython-be8d06f5234ace688520bfea9139e68214788910.tar.gz cpython-be8d06f5234ace688520bfea9139e68214788910.tar.bz2 |
Issue #18216: gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill.
Diffstat (limited to 'Doc/library/gettext.rst')
-rw-r--r-- | Doc/library/gettext.rst | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Doc/library/gettext.rst b/Doc/library/gettext.rst index 982780f..d2c6d74 100644 --- a/Doc/library/gettext.rst +++ b/Doc/library/gettext.rst @@ -344,9 +344,9 @@ will assume message ids as Unicode strings, not byte strings. The entire set of key/value pairs are placed into a dictionary and set as the "protected" :attr:`_info` instance variable. -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:`OSError`. +If the :file:`.mo` file's magic number is invalid, the major version number is +unexpected, or if other problems occur while reading the file, instantiating a +:class:`GNUTranslations` class can raise :exc:`OSError`. The following methods are overridden from the base class implementation: |