summaryrefslogtreecommitdiff
path: root/sphinx/io.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-05 22:53:38 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-05 23:11:16 +0900
commitc8ce761a73f69e9b540d223bcbc491c1b683167d (patch)
tree529e9319f8d6a07ba2a9bb918606758e1dedd7fe /sphinx/io.py
parent8a6179aa61ee17f234f7522b2d6f69ee9ff3d9bf (diff)
downloadsphinx-git-c8ce761a73f69e9b540d223bcbc491c1b683167d.tar.gz
deprecate SphinxRSTFileInput
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py4
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',