mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Skip meaningless publisher.set_components() call
"parser" component is already passed on initialization. So it is not needed to call `set_components()` method.
This commit is contained in:
parent
4493d7bf07
commit
534583cfa6
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user