Remove deprecated `sphinx.util.docutils.is_html5_writer_available()` function (#11378)

This commit is contained in:
Adam Turner 2023-04-28 10:14:53 +01:00 committed by GitHub
parent ce606d82cd
commit d22e660347
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 9 deletions

View File

@ -21,6 +21,8 @@ Incompatible changes
* #11371: Remove deprecated ``sphinx.pycode.ast.parse()`` function.
* #11372: Remove deprecated ``sphinx.io.read_doc()`` function.
* #11373: Removed deprecated ``sphinx.util.get_matching_files()`` function.
* #11378: Remove deprecated ``sphinx.util.docutils.is_html5_writer_available()``
function.
Deprecated
----------

View File

@ -4,7 +4,6 @@ from __future__ import annotations
import os
import re
import warnings
from contextlib import contextmanager
from copy import copy
from os import path
@ -371,14 +370,6 @@ class NullReporter(Reporter):
super().__init__('', 999, 4)
def is_html5_writer_available() -> bool:
from sphinx.deprecation import RemovedInSphinx70Warning
warnings.warn('is_html5_writer_available() is deprecated.',
RemovedInSphinx70Warning)
return True
@contextmanager
def switch_source_input(state: State, content: StringList) -> Generator[None, None, None]:
"""Switch current source input of state temporarily."""