Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sphinx-doc/sphinx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/util/compat.py')
-rw-r--r--sphinx/util/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/util/compat.py b/sphinx/util/compat.py
index 0135899eb..4923343ae 100644
--- a/sphinx/util/compat.py
+++ b/sphinx/util/compat.py
@@ -46,7 +46,7 @@ class IndexEntriesMigrator(SphinxTransform):
if len(entries) == 4:
source, line = get_source_line(node)
warnings.warn('An old styled index node found: %r at (%s:%s)' %
- (node, source, line), RemovedInSphinx40Warning)
+ (node, source, line), RemovedInSphinx40Warning, stacklevel=2)
node['entries'][i] = entries + (None,)