summaryrefslogtreecommitdiff
path: root/sphinx/util/pycompat.py
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/pycompat.py')
-rw-r--r--sphinx/util/pycompat.py7
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)