Fix deprecation warnings

This commit is contained in:
Adam Turner
2023-01-05 12:17:54 +00:00
parent 2c104e9838
commit a2176d47b5
2 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,6 @@ Special nodes
-------------
.. autoclass:: only
.. autoclass:: meta
.. autoclass:: highlightlang
You should not need to generate the nodes below in extensions.

View File

@@ -12,7 +12,8 @@ from os import path
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 @@ deprecated_alias('sphinx.util',
'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',