Skip to content

Commit

Permalink
Remove deprecated `sphinx.util.docutils.is_html5_writer_available()
Browse files Browse the repository at this point in the history
…` function (#11378)
  • Loading branch information
AA-Turner committed Apr 28, 2023
1 parent ce606d8 commit d22e660
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
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

0 comments on commit d22e660

Please sign in to comment.