From f3350b8b7d709aada5803865c444b3ba4ccc1bd5 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Mon, 17 Dec 2018 22:06:53 +0900 Subject: [PATCH] Deprecate SphinxFileInput.supported --- CHANGES | 1 + doc/extdev/index.rst | 5 +++++ sphinx/io.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGES b/CHANGES index d177e4973..33f69cc6a 100644 --- a/CHANGES +++ b/CHANGES @@ -64,6 +64,7 @@ Deprecated * ``sphinx.ext.autosummary.Autosummary.result`` * ``sphinx.ext.doctest.doctest_encode()`` * ``sphinx.io.SphinxBaseFileInput`` +* ``sphinx.io.SphinxFileInput.supported`` * ``sphinx.io.SphinxRSTFileInput`` * ``sphinx.registry.SphinxComponentRegistry.add_source_input()`` * ``sphinx.testing.util.remove_unicode_literal()`` diff --git a/doc/extdev/index.rst b/doc/extdev/index.rst index 25703a615..2d6c6559d 100644 --- a/doc/extdev/index.rst +++ b/doc/extdev/index.rst @@ -273,6 +273,11 @@ The following is a list of deprecated interfaces. - 3.0 - N/A + * - ``sphinx.io.SphinxFileInput.supported`` + - 2.0 + - 3.0 + - N/A + * - ``sphinx.io.SphinxRSTFileInput`` - 2.0 - 3.0 diff --git a/sphinx/io.py b/sphinx/io.py index fb3664c89..ee4891a2b 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -198,7 +198,7 @@ class SphinxBaseFileInput(FileInput): class SphinxFileInput(FileInput): """A basic FileInput for Sphinx.""" - supported = ('*',) # special source input + supported = ('*',) # RemovedInSphinx30Warning def __init__(self, *args, **kwargs): # type: (Any, Any) -> None