Skip to content

[3.11] gh-98366: use sphinx.locale._ as gettext() in pyspecific.py (GH-98437) - #99359

Merged
miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-d26ee8a-3.11
Nov 11, 2022
Merged

miss-islington merged 1 commit into
python:3.11from
miss-islington:backport-d26ee8a-3.11

Conversation

@miss-islington

@miss-islington miss-islington commented Nov 11, 2022 •

Copy link
Copy Markdown
Contributor

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 d26ee8a)

Co-authored-by: Wei-Hsiang (Matt) Wang mattwang44@gmail.com

…thonGH-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 d26ee8a)

Co-authored-by: Wei-Hsiang (Matt) Wang <mattwang44@gmail.com>
@miss-islington
miss-islington merged commit edd92a1 into python:3.11 Nov 11, 2022
@miss-islington
miss-islington deleted the backport-d26ee8a-3.11 branch November 11, 2022 01:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

4 participants