Skip to content

Commit b04cc2e

Browse files
committed
Use sphinx.util.display.status_iterator as possible
Close #21.
1 parent 348a4dd commit b04cc2e

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/sphinxnotes/snippet/utils/pdict.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,12 @@ def load(self) -> None:
9090

9191
def dump(self):
9292
"""Dump store to disk."""
93-
from sphinx.util import status_iterator
93+
# sphinx.util.status_iterator alias has been deprecated since sphinx 6.1
94+
# and will be removed in sphinx 8.0
95+
try:
96+
from sphinx.util.display import status_iterator
97+
except ImportError:
98+
from sphinx.util import status_iterator
9499

95100
# Makesure dir exists
96101
if not path.exists(self.dirname):

0 commit comments

Comments
 (0)