diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2015-02-14 11:27:40 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2015-02-14 11:27:40 +0100 |
commit | 2c22f737bdc995adf25983d9ddac07ba19ef958f (patch) | |
tree | 334e683bbb1e8e44e2234aff0e9041d187f6d1da /sphinx/util/pycompat.py | |
parent | b9cd85ad4149edf220c5892622132a711d8e3b59 (diff) | |
download | sphinx-git-2c22f737bdc995adf25983d9ddac07ba19ef958f.tar.gz |
Slated for removal in 1.4.
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 49615af94..8b7ac92ba 100644 --- a/sphinx/util/pycompat.py +++ b/sphinx/util/pycompat.py @@ -121,9 +121,10 @@ class _DeprecationWrapper(object): def __getattr__(self, attr): if attr in self._deprecated: - warnings.warn("sphinx.util.pycompat.%s is deprecated, " - "please use the standard library version." % attr, - DeprecationWarning) + warnings.warn("sphinx.util.pycompat.%s is deprecated and will be " + "removed in Sphinx 1.4, please use the standard " + "library version instead." % attr, + DeprecationWarning, stacklevel=2) return self._deprecated[attr] return getattr(self._mod, attr) |