From 8d3157c4eae185ef3e20d279ddbd171dd2a3ed5b Mon Sep 17 00:00:00 2001 From: Thomas A Caswell Date: Mon, 29 Aug 2016 23:44:12 -0400 Subject: [PATCH] FIX: sphinx 1.4.0 details In 10bbf1c1747857b5946045574e65ce1ba977bb0e which merged parallel building, the changes from 3a944a6c87e4452a215045a5281c352838898f25 (which accounted for sphinx 1.4.0 becoming stricter) were discarded. --- lib/matplotlib/sphinxext/only_directives.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/matplotlib/sphinxext/only_directives.py b/lib/matplotlib/sphinxext/only_directives.py index d3070261ddc7..18205cc7de71 100644 --- a/lib/matplotlib/sphinxext/only_directives.py +++ b/lib/matplotlib/sphinxext/only_directives.py @@ -64,10 +64,12 @@ def visit_ignore(self, node): def depart_ignore(self, node): node.children = [] - app.add_node(html_only, html=(visit_perform, depart_perform)) - app.add_node(html_only, latex=(visit_ignore, depart_ignore)) - app.add_node(latex_only, latex=(visit_perform, depart_perform)) - app.add_node(latex_only, html=(visit_ignore, depart_ignore)) + app.add_node(html_only, + html=(visit_perform, depart_perform), + latex=(visit_ignore, depart_ignore)) + app.add_node(latex_only, + latex=(visit_perform, depart_perform), + html=(visit_ignore, depart_ignore)) metadata = {'parallel_read_safe': True, 'parallel_write_safe': True} return metadata