Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb63a620

Browse files
authored
bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)
The solution in gh##13236 is too strict because iteffectively requires the use of Sphinx >= 2.0. It is not too difficult tomake the same solution more robust so it works with all normal versionsof Sphinx.
1 parentc0afb7f commitb63a620

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎Doc/tools/extensions/pyspecific.py‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,12 @@ def run(self):
394394
translatable=False)
395395
node.append(para)
396396
env=self.state.document.settings.env
397-
env.get_domain('changeset').note_changeset(node)
397+
# deprecated pre-Sphinx-2 method
398+
ifhasattr(env,'note_versionchange'):
399+
env.note_versionchange('deprecated',version[0],node,self.lineno)
400+
# new method
401+
else:
402+
env.get_domain('changeset').note_changeset(node)
398403
return [node]+messages
399404

400405

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp