Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Apr 28, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions CHANGES
Expand Up @@ -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
----------
Expand Down
9 changes: 0 additions & 9 deletions sphinx/util/docutils.py
Expand Up @@ -4,7 +4,6 @@

import os
import re
import warnings
from contextlib import contextmanager
from copy import copy
from os import path
Expand Down Expand Up @@ -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."""
Expand Down