Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-02 15:17:12 +0300
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2021-03-02 15:18:31 +0300
commit61c9c7fc58bf0c21207908bde6440cd315456818 (patch)
tree2562059a9ee472ba400ce6052142d07334e90681 /sphinx/io.py
parent4f7f3304b16330f7112c36ef15c9d928f95e337d (diff)
Deprecate SphinxComponentRegistry.get_source_input()
The source_input system was deprecated at v2.0. So no client uses it longer now. Therefore this deprecate the getter interface and its usage.
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py29
1 files changed, 7 insertions, 22 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 96f181184..f6ab0e1ef 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -178,27 +178,12 @@ def read_doc(app: "Sphinx", env: BuildEnvironment, filename: str) -> nodes.docum
# CommonMarkParser.
parser.settings_spec = RSTParser.settings_spec
- input_class = app.registry.get_source_input(filetype)
- if input_class:
- # Sphinx-1.8 style
- source = input_class(app, env, source=None, source_path=filename, # type: ignore
- encoding=env.config.source_encoding)
- pub = Publisher(reader=reader,
- parser=parser,
- writer=SphinxDummyWriter(),
- source_class=SphinxDummySourceClass, # type: ignore
- destination=NullOutput())
- pub.process_programmatic_settings(None, env.settings, None)
- pub.set_source(source, filename)
- else:
- # Sphinx-2.0 style
- pub = Publisher(reader=reader,
- parser=parser,
- writer=SphinxDummyWriter(),
- source_class=SphinxFileInput,
- destination=NullOutput())
- pub.process_programmatic_settings(None, env.settings, None)
- pub.set_source(source_path=filename)
-
+ pub = Publisher(reader=reader,
+ parser=parser,
+ writer=SphinxDummyWriter(),
+ source_class=SphinxFileInput,
+ destination=NullOutput())
+ pub.process_programmatic_settings(None, env.settings, None)
+ pub.set_source(source_path=filename)
pub.publish()
return pub.document