diff options
author | shimizukawa <shimizukawa@gmail.com> | 2016-11-27 11:37:16 +0900 |
---|---|---|
committer | shimizukawa <shimizukawa@gmail.com> | 2016-12-04 14:09:17 +0900 |
commit | 816b1db93dde129dd6a5fb7a5bb2f6985a4c503b (patch) | |
tree | d7f83c909b7a1b3a3091ea2c4ec9b137f972faa9 /sphinx/util/pycompat.py | |
parent | 61a6ca5b374e1f983414e2ba82a4867fb745ff2e (diff) | |
download | sphinx-git-816b1db93dde129dd6a5fb7a5bb2f6985a4c503b.tar.gz |
Emit several warnings that will be deprecated in Sphinx 1.6. There is no way to hide the warnings.
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r-- | sphinx/util/pycompat.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sphinx/util/pycompat.py b/sphinx/util/pycompat.py index e3b17ef62..d268ef6ae 100644 --- a/sphinx/util/pycompat.py +++ b/sphinx/util/pycompat.py @@ -15,10 +15,11 @@ import codecs import warnings from six import class_types +from six import PY3, text_type, exec_ from six.moves import zip_longest from itertools import product -from six import PY3, text_type, exec_ +from sphinx.deprecation import RemovedInSphinx16Warning NoneType = type(None) @@ -138,9 +139,9 @@ class _DeprecationWrapper(object): def __getattr__(self, attr): if attr in self._deprecated: warnings.warn("sphinx.util.pycompat.%s is deprecated and will be " - "removed in Sphinx 1.4, please use the standard " + "removed in Sphinx 1.6, please use the standard " "library version instead." % attr, - DeprecationWarning, stacklevel=2) + RemovedInSphinx16Warning, stacklevel=2) return self._deprecated[attr] return getattr(self._mod, attr) |