Skip to content

Commit 0186a3c

Browse files
N-WoudaAWhetter
authored andcommitted
Replace usage of deprecated sphinx.util.status_iterator
1 parent 92437c9 commit 0186a3c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

autoapi/mappers/base.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def _wrapped_prepare(value):
207207
def load(self, patterns, dirs, ignore=None):
208208
"""Load objects from the filesystem into the ``paths`` dictionary."""
209209
paths = list(self.find_files(patterns=patterns, dirs=dirs, ignore=ignore))
210-
for path in sphinx.util.status_iterator(
210+
for path in sphinx.util.display.status_iterator(
211211
paths,
212212
colorize("bold", "[AutoAPI] Reading files... "),
213213
"darkgreen",
@@ -290,7 +290,7 @@ def add_object(self, obj):
290290

291291
def map(self, options=None):
292292
"""Trigger find of serialized sources and build objects"""
293-
for _, data in sphinx.util.status_iterator(
293+
for _, data in sphinx.util.display.status_iterator(
294294
self.paths.items(),
295295
colorize("bold", "[AutoAPI] ") + "Mapping Data... ",
296296
length=len(self.paths),
@@ -308,7 +308,7 @@ def create_class(self, data, options=None, **kwargs):
308308
raise NotImplementedError
309309

310310
def output_rst(self, root, source_suffix):
311-
for _, obj in sphinx.util.status_iterator(
311+
for _, obj in sphinx.util.display.status_iterator(
312312
self.objects.items(),
313313
colorize("bold", "[AutoAPI] ") + "Rendering Data... ",
314314
length=len(self.objects),

autoapi/mappers/python/mapper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def load(self, patterns, dirs, ignore=None):
291291
)
292292
return False
293293

294-
for dir_root, path in sphinx.util.status_iterator(
294+
for dir_root, path in sphinx.util.display.status_iterator(
295295
dir_root_files,
296296
colorize("bold", "[AutoAPI] Reading files... "),
297297
length=len(dir_root_files),

0 commit comments

Comments
 (0)