2020-12-05 17:56:36 +01:00
|
|
|
---
|
2020-12-12 15:31:49 +01:00
|
|
|
Doc/tools/extensions/pyspecific.py | 6 ++++++
|
|
|
|
1 file changed, 6 insertions(+)
|
2020-12-05 17:56:36 +01:00
|
|
|
|
|
|
|
--- a/Doc/tools/extensions/pyspecific.py
|
|
|
|
+++ b/Doc/tools/extensions/pyspecific.py
|
2021-02-08 23:33:22 +01:00
|
|
|
@@ -361,7 +361,12 @@ class DeprecatedRemoved(Directive):
|
2020-12-05 17:56:36 +01:00
|
|
|
translatable=False)
|
|
|
|
node.append(para)
|
|
|
|
env = self.state.document.settings.env
|
2020-12-05 18:02:48 +01:00
|
|
|
- env.get_domain('changeset').note_changeset(node)
|
2020-12-05 17:56:36 +01:00
|
|
|
+ # deprecated pre-Sphinx-2 method
|
2020-12-12 15:31:49 +01:00
|
|
|
+ if hasattr(env, 'note_versionchange'):
|
2020-12-05 17:56:36 +01:00
|
|
|
+ env.note_versionchange('deprecated', version[0], node, self.lineno)
|
2020-12-12 15:31:49 +01:00
|
|
|
+ # new method
|
|
|
|
+ else:
|
|
|
|
+ env.get_domain('changeset').note_changeset(node)
|
2020-12-05 17:56:36 +01:00
|
|
|
return [node] + messages
|
|
|
|
|
|
|
|
|