summaryrefslogtreecommitdiff
path: root/Doc/library/gettext.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-10-28 20:17:51 +0100
committerAntoine Pitrou <solipsis@pitrou.net>2014-10-28 20:17:51 +0100
commita78cf8495abe3853aece98afa5cb16ea4ffc9b72 (patch)
treef16d60dd71270aa2c63480e793c8cf3374e8c503 /Doc/library/gettext.rst
parentcd8e80b4c3e4b1f1e881b8f87e2e5cb8229f68b0 (diff)
downloadcpython-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.rst6
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: