diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-22 17:53:47 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-04-22 17:54:20 +0900 |
commit | a62104ccda6070fe04ba4d2d7ba6969b7767a1fc (patch) | |
tree | 6e2796b6dc27375aec7f4aab5cbfaa44320e75f2 | |
parent | c0a39eb3f793af05e281f3e12f39c35a79be421b (diff) | |
download | sphinx-git-a62104ccda6070fe04ba4d2d7ba6969b7767a1fc.tar.gz |
Emit deprecation warnings on importing sphinx.websupport
-rw-r--r-- | sphinx/websupport/__init__.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sphinx/websupport/__init__.py b/sphinx/websupport/__init__.py index 88de8cece..f06d98433 100644 --- a/sphinx/websupport/__init__.py +++ b/sphinx/websupport/__init__.py @@ -9,7 +9,14 @@ :license: BSD, see LICENSE for details. """ +import warnings + +from sphinx.deprecation import RemovedInSphinx20Warning from sphinxcontrib.websupport import WebSupport # NOQA from sphinxcontrib.websupport import errors # NOQA from sphinxcontrib.websupport.search import BaseSearch, SEARCH_ADAPTERS # NOQA from sphinxcontrib.websupport.storage import StorageBackend # NOQA + +warnings.warn('sphinx.websupport module is now provided as sphinxcontrib.webuspport. ' + 'sphinx.websupport will be removed in Sphinx-2.0. Please use it instaed', + RemovedInSphinx20Warning) |