Skip to content

Commit

Permalink
Revert "bpo-42579: Make workaround for various versions of Sphinx mor…
Browse files Browse the repository at this point in the history
…e robust (pythonGH-23662)"

This reverts commit b63a620.
  • Loading branch information
AA-Turner committed Jun 11, 2022
1 parent 3fd0a1c commit 01357ca
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Doc/tools/extensions/pyspecific.py
Original file line number Diff line number Diff line change
Expand Up @@ -418,12 +418,7 @@ def run(self):
translatable=False)
node.append(para)
env = self.state.document.settings.env
# deprecated pre-Sphinx-2 method
if hasattr(env, 'note_versionchange'):
env.note_versionchange('deprecated', version[0], node, self.lineno)
# new method
else:
env.get_domain('changeset').note_changeset(node)
env.get_domain('changeset').note_changeset(node)
return [node] + messages


Expand Down

0 comments on commit 01357ca

Please sign in to comment.