From 2c22f737bdc995adf25983d9ddac07ba19ef958f Mon Sep 17 00:00:00 2001 From: Robert Lehmann Date: Sat, 14 Feb 2015 11:27:40 +0100 Subject: [PATCH] Slated for removal in 1.4. --- sphinx/util/pycompat.py | 7 ++++--- 1 file 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)