summaryrefslogtreecommitdiffstats
path: root/Doc/library/gettext.rst
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2014-10-28 19:17:51 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2014-10-28 19:17:51 (GMT)
commitbe8d06f5234ace688520bfea9139e68214788910 (patch)
treef478b190be5b947c2ccad48bf148a657a52a8267 /Doc/library/gettext.rst
parentb7374d0271765f0abeb92f8d87b0ce9b0c2be3df (diff)
downloadcpython-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.rst6
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: