Matej Cepl
3b3841013a
fixing bsc#1233307 (CVE-2024-11168, gh#python/cpython#103848): Improper validation of IPv6 and IPvFuture addresses. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python39?expand=0&rev=216
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
|