diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2022-11-11 01:32:30 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 01:32:30 (GMT) |
commit | 5612471501b05518287ed61c1abcb9ed38c03942 (patch) | |
tree | c1a6f364af166dac03aaf2c72023c84d31ff7d26 /Python/errors.c | |
parent | f7d3b18ed5369869dc7abf13adf12dff6e03c043 (diff) | |
download | cpython-5612471501b05518287ed61c1abcb9ed38c03942.zip cpython-5612471501b05518287ed61c1abcb9ed38c03942.tar.gz cpython-5612471501b05518287ed61c1abcb9ed38c03942.tar.bz2 |
gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (GH-98437)
fix(doc-tools): use sphinx.locale._ as gettext() for backward-compatibility in pyspecific.py
[why] spinix 5.3 changed locale.translators from a defaultdict(gettext.NullTranslations) to a dict, which leads to failure of pyspecific.py. Use sphinx.locale._ as gettext to fix the issue.
(cherry picked from commit d26ee8a0a552de111b8245ef0de63e3f3f535d9f)
Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
Diffstat (limited to 'Python/errors.c')
0 files changed, 0 insertions, 0 deletions