summaryrefslogtreecommitdiff
path: root/sphinx/io.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-07 01:04:37 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-12-07 23:24:39 +0900
commit534583cfa65c00143fa221533c29b2e0b2f54e05 (patch)
treea8adb207ed949cd49ec24e761bbc98342bb6894d /sphinx/io.py
parent4493d7bf07ab62040e4c525e6007e6cc57af6a3a (diff)
downloadsphinx-git-534583cfa65c00143fa221533c29b2e0b2f54e05.tar.gz
Skip meaningless publisher.set_components() call
"parser" component is already passed on initialization. So it is not needed to call `set_components()` method.
Diffstat (limited to 'sphinx/io.py')
-rw-r--r--sphinx/io.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/sphinx/io.py b/sphinx/io.py
index 89d2bc209..6e0abfabe 100644
--- a/sphinx/io.py
+++ b/sphinx/io.py
@@ -307,7 +307,6 @@ def read_doc(app, env, filename):
writer=SphinxDummyWriter(),
source_class=SphinxDummySourceClass,
destination=NullOutput())
- pub.set_components(None, 'restructuredtext', None)
pub.process_programmatic_settings(None, env.settings, None)
pub.set_source(source, filename)
pub.publish()