History log of /external/python/cpython3/Lib/gettext.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5ae6c776a8fc96df95597a9b24109c7448131276 14-Nov-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28563: Make plural form selection more lenient and accepting
non-integer numbers. Django tests depend on this.
5ca92ab3d233f8c51d48bc6b70ee93c919b789bf 14-Nov-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28563: Make plural form selection more lenient and accepting
non-integer numbers. Django tests depend on this.
60ac989d6f9884f551327cc7e9a4b71ef67ab533 14-Nov-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28563: Make plural form selection more lenient and accepting
non-integer numbers. Django tests depend on this.
/external/python/cpython3/Lib/gettext.py
eb20fcae144c70f6210872bdb699731ba66fb9f8 08-Nov-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
1c3fdd900d102cf993fb787dfc65fb01d987945d 08-Nov-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
07bcf05fcf3fd1d4001e8e3489162e6d67638285 08-Nov-2016 Serhiy Storchaka <storchaka@gmail.com> Issue #28563: Fixed possible DoS and arbitrary code execution when handle
plural form selections in the gettext module. The expression parser now
supports exact syntax supported by GNU gettext.
/external/python/cpython3/Lib/gettext.py
8b963c5853519533ef7188effcde9159c56780d1 13-Apr-2015 Andrew Kuchling <amk@amk.ca> #17898: reset k and v so that the loop doesn't use an old value
/external/python/cpython3/Lib/gettext.py
770b08e8e2ec7aa0028f4e94e3f27f1d545aee3e 13-Apr-2015 Andrew Kuchling <amk@amk.ca> #23883: add names missing from __all__ (l*gettext, bind_textdomain_codeset)
/external/python/cpython3/Lib/gettext.py
f7a17b48d748e1835bcf9df86fb7fb318bb020f8 25-Dec-2012 Andrew Svetlov <andrew.svetlov@gmail.com> Replace IOError with OSError (#16715)
/external/python/cpython3/Lib/gettext.py
7ded1f0f694f0f99252ea19eca18b74ea5e36cb0 26-May-2012 Vinay Sajip <vinay_sajip@yahoo.co.uk> Implemented PEP 405 (Python virtual environments).
/external/python/cpython3/Lib/gettext.py
19ddaf6d40efd69d7c5292a24a5bd78b5166465a 14-Apr-2015 Andrew Kuchling <amk@amk.ca> Merge from 3.4
467a546b5ea4ca4112f3cc4ae1f7c0c39a8ad0cf 14-Apr-2015 Andrew Kuchling <amk@amk.ca> Merge from 3.4
be8d06f5234ace688520bfea9139e68214788910 28-Oct-2014 Antoine Pitrou <solipsis@pitrou.net> Issue #18216: gettext now raises an error when a .mo file has an unsupported major version number. Patch by Aaron Hill.
/external/python/cpython3/Lib/gettext.py
4969f709cc07088a40574c05724d83cddc8fafc7 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: Merge with 3.1.
42da663e6fe7ecbb89b17d596c76812a91bb99a4 15-Mar-2011 Ezio Melotti <ezio.melotti@gmail.com> #11515: fix several typos. Patch by Piotr Kasprzyk.
/external/python/cpython3/Lib/gettext.py
bc78e37d4600de458559ca25959ee81ab864df29 24-Dec-2010 Benjamin Peterson <benjamin@python.org> update comment
/external/python/cpython3/Lib/gettext.py
31e87203248047aa99ddbb4165b3b20c758196d8 23-Dec-2010 Benjamin Peterson <benjamin@python.org> kill some function imports
/external/python/cpython3/Lib/gettext.py
a91dd1e411c405ec3b5eba9a9e917c43f9f20223 23-Dec-2010 Benjamin Peterson <benjamin@python.org> use native tenary condition
/external/python/cpython3/Lib/gettext.py
298be5161f27006a82bf499fcd7a990cb5ee4a87 05-Oct-2010 Éric Araujo <merwok@netwok.org> Merged revisions 85223 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k

........
r85223 | eric.araujo | 2010-10-05 01:52:37 +0200 (mar., 05 oct. 2010) | 3 lines

Fix interaction of custom translation classes and caching (#9042)
........
/external/python/cpython3/Lib/gettext.py
6108bf5ed002925f2092deb025f336d8c2024299 05-Oct-2010 Éric Araujo <merwok@netwok.org> Fix interaction of custom translation classes and caching (#9042)
/external/python/cpython3/Lib/gettext.py
fa0d7034339fee79cf5f095ee48488ea13a3fc4b 02-Jun-2009 Benjamin Peterson <benjamin@python.org> Merged revisions 72506,72525-72526,72551,72558,72616,72654-72655,72689,72745,72750,72802,72812,72822,72824,72826-72827,72833,72876,72890,72923,72946,73026,73042,73045,73047,73065,73068-73069 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
r72506 | vinay.sajip | 2009-05-09 07:07:17 -0500 (Sat, 09 May 2009) | 1 line

Issue #5971: StreamHandler.handleError now swallows IOErrors which occur when trying to print a traceback.
........
r72525 | benjamin.peterson | 2009-05-09 20:38:02 -0500 (Sat, 09 May 2009) | 1 line

close file explicitly
........
r72526 | benjamin.peterson | 2009-05-09 21:29:00 -0500 (Sat, 09 May 2009) | 1 line

make sure files are closed using the with statement
........
r72551 | benjamin.peterson | 2009-05-10 09:16:47 -0500 (Sun, 10 May 2009) | 1 line

use isinstance
........
r72558 | benjamin.peterson | 2009-05-10 18:52:09 -0500 (Sun, 10 May 2009) | 1 line

sys.setdefaultencoding() strikes me as a bad example
........
r72616 | benjamin.peterson | 2009-05-13 19:33:10 -0500 (Wed, 13 May 2009) | 1 line

importlib.import_module is better these days
........
r72654 | benjamin.peterson | 2009-05-14 17:37:49 -0500 (Thu, 14 May 2009) | 1 line

prevent refleaks from threads
........
r72655 | benjamin.peterson | 2009-05-14 17:40:34 -0500 (Thu, 14 May 2009) | 1 line

a useful decorator for cleaning up threads
........
r72689 | benjamin.peterson | 2009-05-16 13:44:34 -0500 (Sat, 16 May 2009) | 1 line

use skipTest()
........
r72745 | benjamin.peterson | 2009-05-17 09:16:29 -0500 (Sun, 17 May 2009) | 1 line

ignore .rst files in sphinx its self
........
r72750 | benjamin.peterson | 2009-05-17 11:59:27 -0500 (Sun, 17 May 2009) | 1 line

chop off slash
........
r72802 | georg.brandl | 2009-05-20 13:35:27 -0500 (Wed, 20 May 2009) | 1 line

#6051: refer to email examples for better way to construct email messages.
........
r72812 | michael.foord | 2009-05-21 17:57:02 -0500 (Thu, 21 May 2009) | 1 line

Rename TestCase._result to _resultForDoCleanups to avoid potential clashes in TestCase subclasses. Issue 6072.
........
r72822 | georg.brandl | 2009-05-22 04:33:25 -0500 (Fri, 22 May 2009) | 1 line

#6084: fix example.
........
r72824 | georg.brandl | 2009-05-22 04:43:17 -0500 (Fri, 22 May 2009) | 1 line

Fix references to file-related functions and methods (os.* vs file.*).
........
r72826 | georg.brandl | 2009-05-22 04:49:42 -0500 (Fri, 22 May 2009) | 1 line

Fix confusing wording.
........
r72827 | georg.brandl | 2009-05-22 04:50:30 -0500 (Fri, 22 May 2009) | 1 line

s/use/call/
........
r72833 | georg.brandl | 2009-05-22 12:00:17 -0500 (Fri, 22 May 2009) | 1 line

#6078: _warnings is a builtin module and has no standard init_warnings function.
........
r72876 | benjamin.peterson | 2009-05-23 15:59:09 -0500 (Sat, 23 May 2009) | 1 line

remove mention of old ctypes version
........
r72890 | gregory.p.smith | 2009-05-24 13:00:13 -0500 (Sun, 24 May 2009) | 2 lines

add a versionadded tag for set_tunnel
........
r72923 | michael.foord | 2009-05-25 15:36:56 -0500 (Mon, 25 May 2009) | 1 line

Make assertSequenceEqual error messages less cryptic, particularly for nested sequences.
........
r72946 | ronald.oussoren | 2009-05-26 13:44:48 -0500 (Tue, 26 May 2009) | 2 lines

Fixes issue 6110
........
r73026 | r.david.murray | 2009-05-29 14:30:27 -0500 (Fri, 29 May 2009) | 3 lines

Issue 6141: document that the first item of args is still the
command name even when executable is specified.
........
r73042 | benjamin.peterson | 2009-05-29 22:10:52 -0500 (Fri, 29 May 2009) | 1 line

no fdatasync on macos
........
r73045 | georg.brandl | 2009-05-30 02:26:04 -0500 (Sat, 30 May 2009) | 1 line

#6146: fix markup bug.
........
r73047 | georg.brandl | 2009-05-30 05:33:23 -0500 (Sat, 30 May 2009) | 1 line

Fix some more small markup problems.
........
r73065 | antoine.pitrou | 2009-05-30 16:39:25 -0500 (Sat, 30 May 2009) | 3 lines

The test for #5330 wasn't correct.
........
r73068 | antoine.pitrou | 2009-05-30 16:45:40 -0500 (Sat, 30 May 2009) | 3 lines

Update ACKS
........
r73069 | benjamin.peterson | 2009-05-30 19:42:42 -0500 (Sat, 30 May 2009) | 1 line

fix signature
........
/external/python/cpython3/Lib/gettext.py
cd86925b3bb994a8b2662cbe04be356768df5e86 17-May-2009 Georg Brandl <georg@python.org> Use true booleans.
/external/python/cpython3/Lib/gettext.py
bded4d3ba1ff03b77bac7eb7057f004a776b5a86 17-Jul-2008 Georg Brandl <georg@python.org> Make gettext Unicode interface consistent and clean up the docs.
/external/python/cpython3/Lib/gettext.py
801844d6fc8b48cfa969dd2573bd522a2b26f974 14-Jul-2008 Benjamin Peterson <benjamin@python.org> #2512 implement the 3.0 gettext API

All the u* gettext variants were renamed to their
none u* variants, since there's no point in translating
to byte strings. I also killed off the unicode parameters
for install
/external/python/cpython3/Lib/gettext.py
1a3284ed69d545e4ef59869998cb8c29233a45fa 02-Dec-2007 Georg Brandl <georg@python.org> #1535: rename __builtin__ module to builtins.
/external/python/cpython3/Lib/gettext.py
98297ee7815939b124156e438b22bd652d67b5db 06-Nov-2007 Guido van Rossum <guido@python.org> Merging the py3k-pep3137 branch back into the py3k branch.
No detailed change log; just check out the change log for the py3k-pep3137
branch. The most obvious changes:

- str8 renamed to bytes (PyString at the C level);
- bytes renamed to buffer (PyBytes at the C level);
- PyString and PyUnicode are no longer compatible.

I.e. we now have an immutable bytes type and a mutable bytes type.

The behavior of PyString was modified quite a bit, to make it more
bytes-like. Some changes are still on the to-do list.
/external/python/cpython3/Lib/gettext.py
6ae5d7f2a132aa9690bfb59b8eebcc1fb7c792c8 31-Oct-2007 Christian Heimes <christian@cheimes.de> Fixed gettext module for Windows. The metadata lines always end in \n and not in os.linesep
/external/python/cpython3/Lib/gettext.py
ce36ad8a467d914eb5c91f33835b9eaea18ee93b 30-Aug-2007 Collin Winter <collinw@gmail.com> Raise statement normalization in Lib/.
/external/python/cpython3/Lib/gettext.py
9600f93db6038ef6d5a1254295bac61e96fa56a2 29-Aug-2007 Guido van Rossum <guido@python.org> Make gettext work with strict str/bytes.
/external/python/cpython3/Lib/gettext.py
652f446d4212bbfcd5a50c5250ab280f3d969db5 12-Jul-2007 Guido van Rossum <guido@python.org> Fixes for str/uni/bytes for gettext.py. test_gettext.py passes.
Fix by Christian Heimes, SF# 1751958, who writes:

I tested the fixes with the Zope3 zope.app.locales packages.
The mo files are loaded and parsed w/o any problem.
The translation with gettext.gettext is working as expected.
/external/python/cpython3/Lib/gettext.py
68937b4cbcc3e88d4207e6391a311f9b7d067b71 18-May-2007 Guido van Rossum <guido@python.org> Change some uses of cStringIO.StringIO to io.StringIO.
This is undoubtedly insufficient and in some cases just as broken as before.
/external/python/cpython3/Lib/gettext.py
805365ee39298f93e433e19ae0dd87c6f782145b 08-May-2007 Guido van Rossum <guido@python.org> Merged revisions 55007-55179 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/p3yk

........
r55077 | guido.van.rossum | 2007-05-02 11:54:37 -0700 (Wed, 02 May 2007) | 2 lines

Use the new print syntax, at least.
........
r55142 | fred.drake | 2007-05-04 21:27:30 -0700 (Fri, 04 May 2007) | 1 line

remove old cruftiness
........
r55143 | fred.drake | 2007-05-04 21:52:16 -0700 (Fri, 04 May 2007) | 1 line

make this work with the new Python
........
r55162 | neal.norwitz | 2007-05-06 22:29:18 -0700 (Sun, 06 May 2007) | 1 line

Get asdl code gen working with Python 2.3. Should continue to work with 3.0
........
r55164 | neal.norwitz | 2007-05-07 00:00:38 -0700 (Mon, 07 May 2007) | 1 line

Verify checkins to p3yk (sic) branch go to 3000 list.
........
r55166 | neal.norwitz | 2007-05-07 00:12:35 -0700 (Mon, 07 May 2007) | 1 line

Fix this test so it runs again by importing warnings_test properly.
........
r55167 | neal.norwitz | 2007-05-07 01:03:22 -0700 (Mon, 07 May 2007) | 8 lines

So long xrange. range() now supports values that are outside
-sys.maxint to sys.maxint. floats raise a TypeError.

This has been sitting for a long time. It probably has some problems and
needs cleanup. Objects/rangeobject.c now uses 4-space indents since
it is almost completely new.
........
r55171 | guido.van.rossum | 2007-05-07 10:21:26 -0700 (Mon, 07 May 2007) | 4 lines

Fix two tests that were previously depending on significant spaces
at the end of a line (and before that on Python 2.x print behavior
that has no exact equivalent in 3.0).
........
/external/python/cpython3/Lib/gettext.py
ef87d6ed94780fe00250a551031023aeb2898365 02-May-2007 Guido van Rossum <guido@python.org> Rip out all the u"..." literals and calls to unicode().
/external/python/cpython3/Lib/gettext.py
e2a383d062434c05b73031f0da57fe82b9da8942 15-Jan-2007 Guido van Rossum <guido@python.org> Rip out 'long' and 'L'-suffixed integer literals.
(Rough first cut.)
/external/python/cpython3/Lib/gettext.py
602b9ba6b37c4ac4ed445f8c9e9dccd68d631899 19-Feb-2006 Georg Brandl <georg@python.org> Patch #1349274: gettext.install() now optionally installs additional
translation functions other than _() in the builtin namespace.
/external/python/cpython3/Lib/gettext.py
a617271dbd150549b021a5161d009869ad62f7b2 31-Dec-2004 Raymond Hettinger <python@rcn.com> Use cStringIO where available.
/external/python/cpython3/Lib/gettext.py
7bd33c5e22c67e06042fb7ab1186f7587d78153d 22-Jul-2004 Gustavo Niemeyer <gustavo@niemeyer.net> This change implements the following gettext features, as
discussed recently in python-dev:

In _locale module:

- bind_textdomain_codeset() binding

In gettext module:

- bind_textdomain_codeset() function
- lgettext(), lngettext(), ldgettext(), ldngettext(),
which return translated strings encoded in
preferred system encoding, if
bind_textdomain_codeset() was not used.
- Added equivalent functionality in translate()
function and catalog classes.

Every change was also documented.
/external/python/cpython3/Lib/gettext.py
bac788a3cd348203a5fdabba52e5faf65bf35c5e 04-May-2004 Raymond Hettinger <python@rcn.com> Replace str.find()!=1 with the more readable "in" operator.
/external/python/cpython3/Lib/gettext.py
b8c787606cfd5bbef2e826ee854f424483e814e2 04-Oct-2003 Barry Warsaw <barry@python.org> GNUTranslations._parse(): Initialize local variable k so that if the
first line of a header section isn't an RFC-ish header, it's just
ignored instead of throwing an UnboundLocalError.

Backport candidate.
/external/python/cpython3/Lib/gettext.py
7de63f57c881cb94ba89c2a1dfaf79af1bba52bb 20-May-2003 Barry Warsaw <barry@python.org> GNUTranslations._parse(): Fix SF bug #658233, where continuation lines
in .po metadata caused a crash.

Backport candidate.
/external/python/cpython3/Lib/gettext.py
c4acc2bd32f14c22f9cd7a95021184809e096ebe 24-Apr-2003 Barry Warsaw <barry@python.org> GNUTranslations:

__init__(): Removed since we no longer need the coerce flag.
Message ids and strings are now always coerced to Unicode, /if/
the catalog specified a charset parameter.

gettext(), ngettext(): Since the message strings are Unicodes in
the catalog, coerce back to encoded 8-bit strings on return.

ugettext(), ungettext(): Coerce the message ids to Unicode when
there's no entry for the id in the catalog.

Minor code cleanups; use booleans where appropriate.
/external/python/cpython3/Lib/gettext.py
6008cbd4c2b5b4f5e9941f312804e12c88aa6efe 11-Apr-2003 Barry Warsaw <barry@python.org> NullTranslations.__init__(): Back out of setting the default charset
to iso-8859-1.

GNUTranslations._parse(): Back out the addition of a test for
Project-ID-Version in the metadata. This was deliberately removed in
response to SF patch #700839.

Also, re-organize the code in _parse() so we parse the metadata header
containing the charset parameter before we try to decode any strings
using charset.
/external/python/cpython3/Lib/gettext.py
a1ce93f87cb221be9a7466c2f9d2b7dc494f458d 11-Apr-2003 Barry Warsaw <barry@python.org> From http://mail.python.org/pipermail/i18n-sig/2003-April/001557.html

- Expose NullTranslations and GNUTranslations to __all__

- Set the default charset to iso-8859-1. It used to be None, which
would cause problems with .ugettext() if the file had no charset
parameter. Arguably, the po/mo file would be broken, but I still think
iso-8859-1 is a reasonable default.

- Add a "coerce" default argument to GNUTranslations's constructor. The
reason for this is that in Zope, we want all msgids and msgstrs to be
Unicode. For the latter, we could use .ugettext() but there isn't
currently a mechanism for Unicode-ifying msgids.

The plan then is that the charset parameter specifies the encoding for
both the msgids and msgstrs, and both are decoded to Unicode when read.
For example, we might encode po files with utf-8. I think the GNU
gettext tools don't care.

Since this could potentially break code [*] that wants to use the
encoded interface .gettext(), the constructor flag is added, defaulting
to False. Most code I suspect will want to set this to True and use
.ugettext().

- A few other minor changes from the Zope project, including asserting
that a zero-length msgid must have a Project-ID-Version header for it to
be counted as the metadata record.
/external/python/cpython3/Lib/gettext.py
a57dccdcd473f3c8187e68348ebcd71c904be9e3 10-Mar-2003 Martin v. Löwis <martin@v.loewis.de> Patch #700839: Fix bugs in the plural handling.
/external/python/cpython3/Lib/gettext.py
d899605e30eef8e77f70184eac15fad1bf770586 21-Nov-2002 Martin v. Löwis <martin@v.loewis.de> Patch #633547: Support plural forms. Do TODOs in test suite.
/external/python/cpython3/Lib/gettext.py
09707e363723fa24ba53e4e5d77cc26d4dea724f 14-Aug-2002 Barry Warsaw <barry@python.org> Patch by Tim to shut up the compiler's DeprecationWarnings on the
high-bit-set hex constants.
/external/python/cpython3/Lib/gettext.py
094662a16542d1cc56713b35dde39089490dec35 01-Jun-2002 Raymond Hettinger <python@rcn.com> Replace boolean test with is None
/external/python/cpython3/Lib/gettext.py
a55ffaeee9eb2fba62f280c364b3460fafd9efc9 11-Jan-2002 Martin v. Löwis <martin@v.loewis.de> Add a per-message fallback mechanism for translations.
/external/python/cpython3/Lib/gettext.py
1be641987145f88d61e52d5b4714a8cc6c7e6da8 11-Jan-2002 Martin v. Löwis <martin@v.loewis.de> Add fallback argument to translation(). Request fallbacks on install.
Fixes #500595.
/external/python/cpython3/Lib/gettext.py
2dd4276559658e06eaf8b623c2c47373f1f50688 23-Jan-2001 Skip Montanaro <skip@pobox.com> added a few more __all__ lists
fixed typo in ihooks docstring
/external/python/cpython3/Lib/gettext.py
07e99cb77406e1bc84606f49b743e41b0de8a6d5 15-Jan-2001 Tim Peters <tim.peters@gmail.com> Whitespace normalization.
/external/python/cpython3/Lib/gettext.py
75f8101c429e132472bba92f3972b7eac68f35f8 16-Oct-2000 Barry Warsaw <barry@python.org> find(): Application of (slightly modified) SF patch #101928 by Ulf
Betlehem, verified by Peter Funk. Fixes preservation of language
search order lost due to use of dictionary keys instead of a list.
Closes SF bug #116964.
/external/python/cpython3/Lib/gettext.py
293b03f73f5ad48719a0f07fb45857182dfb1d51 05-Oct-2000 Barry Warsaw <barry@python.org> translation(): Minor optimization patch which avoids instantiating the
default value's instance unless it's absolutely necessary.
/external/python/cpython3/Lib/gettext.py
c638791d53c7a2f72f8b934a7e7b1513f12aaa4e 01-Sep-2000 Tim Peters <tim.peters@gmail.com> Repaired comment.
/external/python/cpython3/Lib/gettext.py
9a2d9d7f04f2ed08574c670bb5ee8ead2a4048ce 01-Sep-2000 Barry Warsaw <barry@python.org> GNUTranslations._parse(): Fix portability problems on 64-bit machines
by masking all unsigned integers with 0xffffffff.
/external/python/cpython3/Lib/gettext.py
b76a55c278cda87cc66ae17b6c33b58a44428bbf 31-Aug-2000 Barry Warsaw <barry@python.org> GNUTranslations.BE_MAGIC: don't be so clever in calculating this from
LE_MAGIC; it breaks on Tru64.
/external/python/cpython3/Lib/gettext.py
33d8d705b88ca6fb227d75d9b7f5bf8efda1d0a7 30-Aug-2000 Barry Warsaw <barry@python.org> Finalize this module for Python 2.0 based on feedback and input from
Martin von Loewis, Peter Funk, James Henstridge, Francois Pinard, and
Marc-Andre Lemburg.
/external/python/cpython3/Lib/gettext.py
fa488ec2a0c60dc6a90d1be7b58d0a277db97b41 25-Aug-2000 Barry Warsaw <barry@python.org> _expand_lang(), _find(): Added support for unaliasing and expanded the
language found in the environment variable, contributed by James
Henstridge.
/external/python/cpython3/Lib/gettext.py
84314b72d65471b0ae68432aefe36a4691e3b04e 25-Aug-2000 Barry Warsaw <barry@python.org> Group consensus is that supporting alternative locale categories is
useless. So the category argument on _find() is removed, as is the
dcgettext() function.
/external/python/cpython3/Lib/gettext.py
95be23dc8626684caa268df7ff7749fcb89adddf 25-Aug-2000 Barry Warsaw <barry@python.org> Initial revision of gettext support for Python. This will undergo
some changes.
/external/python/cpython3/Lib/gettext.py