mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Remove deprecated `sphinx.util.docutils.is_html5_writer_available()
` function (#11378)
This commit is contained in:
parent
ce606d82cd
commit
d22e660347
2
CHANGES
2
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
|
||||
----------
|
||||
|
@ -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."""
|
||||
|
Loading…
Reference in New Issue
Block a user