diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-05 22:53:38 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2018-12-05 23:11:16 +0900 |
commit | c8ce761a73f69e9b540d223bcbc491c1b683167d (patch) | |
tree | 529e9319f8d6a07ba2a9bb918606758e1dedd7fe /sphinx/io.py | |
parent | 8a6179aa61ee17f234f7522b2d6f69ee9ff3d9bf (diff) | |
download | sphinx-git-c8ce761a73f69e9b540d223bcbc491c1b683167d.tar.gz |
deprecate SphinxRSTFileInput
Diffstat (limited to 'sphinx/io.py')
-rw-r--r-- | sphinx/io.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sphinx/io.py b/sphinx/io.py index 88b7eca36..ad6985778 100644 --- a/sphinx/io.py +++ b/sphinx/io.py @@ -252,6 +252,9 @@ class SphinxRSTFileInput(SphinxBaseFileInput): def read(self): # type: () -> StringList + warnings.warn('SphinxRSTFileInput is deprecated.', + RemovedInSphinx30Warning, stacklevel=2) + inputstring = super(SphinxRSTFileInput, self).read() lines = string2lines(inputstring, convert_whitespace=True) content = StringList() @@ -320,7 +323,6 @@ def read_doc(app, env, filename): def setup(app): # type: (Sphinx) -> Dict[unicode, Any] app.registry.add_source_input(SphinxFileInput) - app.registry.add_source_input(SphinxRSTFileInput) return { 'version': 'builtin', |