diff options
author | Adam Turner <9087854+AA-Turner@users.noreply.github.com> | 2023-04-28 10:14:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-28 10:14:53 +0100 |
commit | d22e66034704b9c2e6f4a5e288ec24881f835441 (patch) | |
tree | 3f3d8e2b4fb9e294e207f2957ffd5598cceb1e71 | |
parent | ce606d82cd03c9ed28b26aac918f060382122779 (diff) | |
download | sphinx-git-d22e66034704b9c2e6f4a5e288ec24881f835441.tar.gz |
Remove deprecated ``sphinx.util.docutils.is_html5_writer_available()`` function (#11378)
-rw-r--r-- | CHANGES | 2 | ||||
-rw-r--r-- | sphinx/util/docutils.py | 9 |
2 files changed, 2 insertions, 9 deletions
@@ -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 ---------- diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index b4795a039..cbf26fcd5 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -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.""" |