summaryrefslogtreecommitdiff
path: root/sphinx/addnodes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-01 01:24:12 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2018-11-01 01:24:12 +0900
commit8b687ac30481e7204677138d8f2f3b49e354963e (patch)
tree7723d959db00959780dc7f9f56c673cd47d7cd97 /sphinx/addnodes.py
parente8e0f93c3fc7a9f8be4a91c13c6ec49672347a1e (diff)
parentf4d7b2e60e4352aac6e19dad16f39328bf493ff4 (diff)
downloadsphinx-git-8b687ac30481e7204677138d8f2f3b49e354963e.tar.gz
Merge branch '1.8'
Diffstat (limited to 'sphinx/addnodes.py')
-rw-r--r--sphinx/addnodes.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/addnodes.py b/sphinx/addnodes.py
index b69533751..1b1bf2d88 100644
--- a/sphinx/addnodes.py
+++ b/sphinx/addnodes.py
@@ -205,7 +205,7 @@ class math(nodes.math):
if key == 'latex' and 'latex' not in self.attributes:
warnings.warn("math node for Sphinx was replaced by docutils'. "
"Therefore please use ``node.astext()`` to get an equation instead.",
- RemovedInSphinx30Warning)
+ RemovedInSphinx30Warning, stacklevel=2)
return self.astext()
else:
return nodes.math.__getitem__(self, key)
@@ -224,7 +224,7 @@ class math_block(nodes.math_block):
if key == 'latex' and 'latex' not in self.attributes:
warnings.warn("displaymath node for Sphinx was replaced by docutils'. "
"Therefore please use ``node.astext()`` to get an equation instead.",
- RemovedInSphinx30Warning)
+ RemovedInSphinx30Warning, stacklevel=2)
return self.astext()
else:
return nodes.math_block.__getitem__(self, key)