mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
gh-86986: Drop compatibility support for Sphinx 2 (GH-93737)
* Revert "bpo-42843: Keep Sphinx 1.8 and Sphinx 2 compatibility (GH-24282)" This reverts commit5c1f15b4b1
* Revert "bpo-42579: Make workaround for various versions of Sphinx more robust (GH-23662)" This reverts commitb63a620014
.
This commit is contained in:
parent
6f8875eba3
commit
0efe3a1636
11 changed files with 18 additions and 52 deletions
|
@ -418,12 +418,7 @@ class DeprecatedRemoved(Directive):
|
|||
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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue