- Update sphinx-update-removed-function.patch patch to the latest
version in python36. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=41
This commit is contained in:
parent
83e48f46d5
commit
5b2c8e3c6b
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sat Dec 12 14:29:33 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
- Update sphinx-update-removed-function.patch patch to the latest
|
||||||
|
version in python36.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 10 00:26:51 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
Thu Dec 10 00:26:51 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||||
|
|
||||||
|
@ -1,12 +1,6 @@
|
|||||||
From 960bb883769e5c64a63b014590d75654db87ffb0 Mon Sep 17 00:00:00 2001
|
|
||||||
From: Pablo Galindo <Pablogsal@gmail.com>
|
|
||||||
Date: Fri, 10 May 2019 22:58:17 +0100
|
|
||||||
Subject: [PATCH] Fix sphinx deprecation warning about env.note_versionchange()
|
|
||||||
(GH-13236)
|
|
||||||
|
|
||||||
---
|
---
|
||||||
Doc/tools/extensions/pyspecific.py | 2 +-
|
Doc/tools/extensions/pyspecific.py | 6 ++++++
|
||||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
1 file changed, 6 insertions(+)
|
||||||
|
|
||||||
--- a/Doc/tools/extensions/pyspecific.py
|
--- a/Doc/tools/extensions/pyspecific.py
|
||||||
+++ b/Doc/tools/extensions/pyspecific.py
|
+++ b/Doc/tools/extensions/pyspecific.py
|
||||||
@ -15,12 +9,12 @@ Subject: [PATCH] Fix sphinx deprecation warning about env.note_versionchange()
|
|||||||
node.append(para)
|
node.append(para)
|
||||||
env = self.state.document.settings.env
|
env = self.state.document.settings.env
|
||||||
- env.get_domain('changeset').note_changeset(node)
|
- env.get_domain('changeset').note_changeset(node)
|
||||||
+ # new method
|
|
||||||
+ if hasattr(env, 'get_domain'):
|
|
||||||
+ env.get_domain('changeset').note_changeset(node)
|
|
||||||
+ # deprecated pre-Sphinx-2 method
|
+ # deprecated pre-Sphinx-2 method
|
||||||
+ else:
|
+ if hasattr(env, 'note_versionchange'):
|
||||||
+ env.note_versionchange('deprecated', version[0], node, self.lineno)
|
+ env.note_versionchange('deprecated', version[0], node, self.lineno)
|
||||||
|
+ # new method
|
||||||
|
+ else:
|
||||||
|
+ env.get_domain('changeset').note_changeset(node)
|
||||||
return [node] + messages
|
return [node] + messages
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user