From 08e85c1820f8502e2a5009da4d3d89c6462a911b Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Fri, 1 Oct 2010 15:21:15 +0200 Subject: sphinxext: remove deprecated parts from numpydoc --- doc/sphinxext/plot_directive.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'doc/sphinxext/plot_directive.py') diff --git a/doc/sphinxext/plot_directive.py b/doc/sphinxext/plot_directive.py index efbd0d303..80801e798 100644 --- a/doc/sphinxext/plot_directive.py +++ b/doc/sphinxext/plot_directive.py @@ -317,12 +317,8 @@ def run(arguments, content, options, state_machine, state, lineno): opts = [':%s: %s' % (key, val) for key, val in options.items() if key in ('alt', 'height', 'width', 'scale', 'align', 'class')] - if sphinx.__version__ >= "0.6": - only_html = ".. only:: html" - only_latex = ".. only:: latex" - else: - only_html = ".. htmlonly::" - only_latex = ".. latexonly::" + only_html = ".. only:: html" + only_latex = ".. only:: latex" if j == 0: src_link = source_link -- cgit v1.2.1