diff options
author | Robert Lehmann <mail@robertlehmann.de> | 2015-02-14 10:15:51 +0100 |
---|---|---|
committer | Robert Lehmann <mail@robertlehmann.de> | 2015-02-14 10:15:51 +0100 |
commit | 193aadb14091324d52ca441a2e59a43650b6501f (patch) | |
tree | 90aeeb69633967c9c6d4cde31b6022bcfc5c1937 /sphinx/util/compat.py | |
parent | f69e6ed4eb3ebd5ab2a931a64e3794f6219666bc (diff) | |
download | sphinx-git-193aadb14091324d52ca441a2e59a43650b6501f.tar.gz |
Fix warning to report actual line of occurrence.
Diffstat (limited to 'sphinx/util/compat.py')
-rw-r--r-- | sphinx/util/compat.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |