mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Slated for removal in 1.4.
This commit is contained in:
parent
b9cd85ad41
commit
2c22f737bd
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user