From 2a9c354b35540dfcc7dfa855a08ba0ca0c44395f Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Mon, 24 Apr 2023 08:19:16 +0100 Subject: [PATCH 1/2] Remove is_html5_writer_available --- sphinx/util/docutils.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/sphinx/util/docutils.py b/sphinx/util/docutils.py index b4795a0394f..cbf26fcd5d5 100644 --- a/sphinx/util/docutils.py +++ b/sphinx/util/docutils.py @@ -4,7 +4,6 @@ import os import re -import warnings from contextlib import contextmanager from copy import copy from os import path @@ -371,14 +370,6 @@ def __init__(self) -> None: 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.""" From 7e8de6724c602688e650e6847c6e409f5dfa1003 Mon Sep 17 00:00:00 2001 From: Adam Turner <9087854+aa-turner@users.noreply.github.com> Date: Fri, 28 Apr 2023 10:04:23 +0100 Subject: [PATCH 2/2] CHANGES --- CHANGES | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGES b/CHANGES index 8365275290c..0274739413e 100644 --- a/CHANGES +++ b/CHANGES @@ -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 ----------