summaryrefslogtreecommitdiff
path: root/sphinx/util/nodes.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-05-03 23:57:08 +0900
committerGitHub <noreply@github.com>2020-05-03 23:57:08 +0900
commit787fda8e49616720e21208ed59297b41712e0c62 (patch)
tree034def89650244adda6e9cc87b8d1af28b696d7f /sphinx/util/nodes.py
parentf93e5a59b62e9faf7236e9862b3c424da44658b7 (diff)
parent41b4a77dea51cf5eb16f9a3fdc27426827313d54 (diff)
downloadsphinx-git-787fda8e49616720e21208ed59297b41712e0c62.tar.gz
Merge pull request #7602 from tk0miya/stacklevel
Add stacklevel parameter to warnings.warn() call
Diffstat (limited to 'sphinx/util/nodes.py')
-rw-r--r--sphinx/util/nodes.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/nodes.py b/sphinx/util/nodes.py
index a6333e782..a18eac580 100644
--- a/sphinx/util/nodes.py
+++ b/sphinx/util/nodes.py
@@ -280,7 +280,7 @@ def extract_messages(doctree: Element) -> Iterable[Tuple[Element, str]]:
def find_source_node(node: Element) -> str:
warnings.warn('find_source_node() is deprecated.',
- RemovedInSphinx40Warning)
+ RemovedInSphinx40Warning, stacklevel=2)
return get_node_source(node)