From 534583cfa65c00143fa221533c29b2e0b2f54e05 Mon Sep 17 00:00:00 2001 From: Takeshi KOMIYA Date: Fri, 7 Dec 2018 01:04:37 +0900 Subject: [PATCH] Skip meaningless publisher.set_components() call "parser" component is already passed on initialization. So it is not needed to call `set_components()` method. --- sphinx/io.py | 1 - 1 file changed, 1 deletion(-) 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()