summaryrefslogtreecommitdiff
path: root/sphinx/directives/code.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-15 00:33:19 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-10-17 02:05:07 +0900
commit257394a4592b4b4f317059fec9938877301c2893 (patch)
tree9dc85b7486b59668ba8a64984c6aa70aadc2f1ed /sphinx/directives/code.py
parentc584b71b128e2ddc0fa1d7f76bbe68217cc64c50 (diff)
downloadsphinx-git-257394a4592b4b4f317059fec9938877301c2893.tar.gz
Fix #5471: Show appropriate warning for deprecated APIs
Diffstat (limited to 'sphinx/directives/code.py')
-rw-r--r--sphinx/directives/code.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/code.py b/sphinx/directives/code.py
index a98ab5883..30ded6dd4 100644
--- a/sphinx/directives/code.py
+++ b/sphinx/directives/code.py
@@ -62,7 +62,7 @@ class HighlightLang(Highlight):
# type: () -> List[nodes.Node]
warnings.warn('highlightlang directive is deprecated. '
'Please use highlight directive instead.',
- RemovedInSphinx40Warning)
+ RemovedInSphinx40Warning, stacklevel=2)
return Highlight.run(self)