From 193aadb14091324d52ca441a2e59a43650b6501f Mon Sep 17 00:00:00 2001 From: Robert Lehmann Date: Sat, 14 Feb 2015 10:15:51 +0100 Subject: [PATCH] Fix warning to report actual line of occurrence. --- sphinx/util/compat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py index 5c5ff3102..a9c492776 100644 --- a/sphinx/util/compat.py +++ b/sphinx/util/compat.py @@ -20,7 +20,7 @@ def make_admonition(node_class, name, arguments, options, content, lineno, content_offset, block_text, state, state_machine): warnings.warn('make_admonition is deprecated, use ' 'docutils.parsers.rst.directives.admonitions.BaseAdmonition ' - 'instead', DeprecationWarning, stacklevel=1) + 'instead', DeprecationWarning, stacklevel=2) text = '\n'.join(content) admonition_node = node_class(text) if arguments: