diff --git a/CHANGES b/CHANGES index 3c51d6286..1e73cdef3 100644 --- a/CHANGES +++ b/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 -------- diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index 7edb04cd3..20975f83d 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -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)