Fix #3873: Failure of deprecation warning mechanism of `sphinx.util.compat.Directive`

This commit is contained in:
Takeshi KOMIYA
2017-06-24 13:42:37 +09:00
parent 014395d46b
commit 6a37912334
2 changed files with 3 additions and 1 deletions

View File

@@ -33,6 +33,8 @@ Bugs fixed
* #3881: LaTeX figure floated to next page sometimes leaves extra vertical
whitespace
* #3885: duplicated footnotes raises IndexError
* #3873: Failure of deprecation warning mechanism of
``sphinx.util.compat.Directive``
Testing
--------

View File

@@ -38,7 +38,7 @@ class _DeprecationWrapper(object):
warnings.warn("sphinx.util.compat.%s is deprecated and will be "
"removed in Sphinx 1.7, please use the standard "
"library version instead." % attr,
RemovedInSphinx17Warning, stacklevel=2)
RemovedInSphinx17Warning)
return self._deprecated[attr]
return getattr(self._mod, attr)