diff options
Diffstat (limited to 'sphinx/environment/__init__.py')
-rw-r--r-- | sphinx/environment/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/environment/__init__.py b/sphinx/environment/__init__.py index b6d64201e..902cef034 100644 --- a/sphinx/environment/__init__.py +++ b/sphinx/environment/__init__.py @@ -750,7 +750,7 @@ class BuildEnvironment: @property def indexentries(self) -> Dict[str, List[Tuple[str, str, str, str, str]]]: warnings.warn('env.indexentries() is deprecated. Please use IndexDomain instead.', - RemovedInSphinx40Warning) + RemovedInSphinx40Warning, stacklevel=2) from sphinx.domains.index import IndexDomain domain = cast(IndexDomain, self.get_domain('index')) return domain.entries |