From 9a63ebd48281c994c39c374b5cdc960acb82963c Mon Sep 17 00:00:00 2001 From: Pauli Virtanen Date: Wed, 1 Apr 2009 20:38:50 +0000 Subject: sphinxext: Sphinx 0.6 compatibility and deprecation warnings --- doc/sphinxext/plot_directive.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'doc/sphinxext/plot_directive.py') diff --git a/doc/sphinxext/plot_directive.py b/doc/sphinxext/plot_directive.py index 6b5ff6eaf..74bd7a24b 100644 --- a/doc/sphinxext/plot_directive.py +++ b/doc/sphinxext/plot_directive.py @@ -74,6 +74,12 @@ TODO import sys, os, glob, shutil, imp, warnings, cStringIO, re, textwrap +import warnings +warnings.warn("A plot_directive module is also available under " + "matplotlib.sphinxext; expect this module to be deprecated " + "after relevant features have been integrated there.", + FutureWarning, stacklevel=2) + def setup(app): setup.app = app setup.config = app.config -- cgit v1.2.1