From a2176d47b5ddba85fbb0db7658ae67b70e7fb0ca Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Thu, 5 Jan 2023 12:17:54 +0000 Subject: [PATCH] Fix deprecation warnings --- doc/extdev/nodes.rst | 1 - sphinx/util/__init__.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/extdev/nodes.rst b/doc/extdev/nodes.rst index 77872df4033..5ef669468d7 100644 --- a/doc/extdev/nodes.rst +++ b/doc/extdev/nodes.rst @@ -59,7 +59,6 @@ Special nodes ------------- .. autoclass:: only -.. autoclass:: meta .. autoclass:: highlightlang You should not need to generate the nodes below in extensions. diff --git a/sphinx/util/__init__.py b/sphinx/util/__init__.py index eaa007b1abc..f38e74d8f40 100644 --- a/sphinx/util/__init__.py +++ b/sphinx/util/__init__.py @@ -12,7 +12,8 @@ from typing import IO, Any, Iterable from urllib.parse import parse_qsl, quote_plus, urlencode, urlsplit, urlunsplit -from sphinx.deprecation import RemovedInSphinx70Warning, deprecated_alias +from sphinx.deprecation import (RemovedInSphinx70Warning, RemovedInSphinx80Warning, + deprecated_alias) from sphinx.errors import ExtensionError, FiletypeNotFoundError from sphinx.locale import __ from sphinx.util import display as _display @@ -391,7 +392,7 @@ def _xml_name_checker(): 'format_exception_cut_frames': _exceptions.format_exception_cut_frames, 'xmlname_checker': _xml_name_checker, }, - RemovedInSphinx70Warning, + RemovedInSphinx80Warning, { 'path_stabilize': 'sphinx.util.osutil.path_stabilize', 'display_chunk': 'sphinx.util.display.display_chunk',