diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-10-28 20:17:51 +0100 |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-10-28 20:17:51 +0100 |
commit | a78cf8495abe3853aece98afa5cb16ea4ffc9b72 (patch) | |
tree | f16d60dd71270aa2c63480e793c8cf3374e8c503 /Doc/library/gettext.rst | |
parent | cd8e80b4c3e4b1f1e881b8f87e2e5cb8229f68b0 (diff) | |
download | cpython-a78cf8495abe3853aece98afa5cb16ea4ffc9b72.tar.gz |
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 982780fec1..d2c6d74b2e 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: |