mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #3873: Failure of deprecation warning mechanism of `sphinx.util.compat.Directive`
This commit is contained in:
2
CHANGES
2
CHANGES
@@ -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
|
||||
--------
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user