Matej Cepl
39e8b959f4
recent and older Sphinx versions. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python38?expand=0&rev=175
22 lines
808 B
Diff
22 lines
808 B
Diff
---
|
|
Doc/tools/extensions/pyspecific.py | 8 +++++++-
|
|
1 file changed, 7 insertions(+), 1 deletion(-)
|
|
|
|
--- a/Doc/tools/extensions/pyspecific.py
|
|
+++ b/Doc/tools/extensions/pyspecific.py
|
|
@@ -27,7 +27,13 @@ try:
|
|
except ImportError:
|
|
from sphinx.environment import NoUri
|
|
from sphinx.locale import _ as sphinx_gettext
|
|
-from sphinx.util import status_iterator, logging
|
|
+try:
|
|
+ from sphinx.util.display import status_iterator
|
|
+except ImportError:
|
|
+ # This method was moved into sphinx.util.display in Sphinx 6.1.0. Before
|
|
+ # that it resided in sphinx.util.
|
|
+ from sphinx.util import status_iterator
|
|
+from sphinx.util import logging
|
|
from sphinx.util.nodes import split_explicit_title
|
|
from sphinx.writers.text import TextWriter, TextTranslator
|
|
from sphinx.writers.latex import LaTeXTranslator
|