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

This commit is contained in:
Takeshi KOMIYA committed 2017-06-24 13:42:52 +09:00
1 parent 014395d46b
commit 6a37912334
2 files changed
+3 -1

No files matched your search

+2
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
--------
+1 -1
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)