Skip to content

Commit

Permalink
Replace usage of deprecated sphinx.util.status_iterator
Browse files Browse the repository at this point in the history
  • Loading branch information
N-Wouda authored and AWhetter committed Sep 24, 2023
1 parent 92437c9 commit 0186a3c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions autoapi/mappers/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def _wrapped_prepare(value):
def load(self, patterns, dirs, ignore=None):
"""Load objects from the filesystem into the ``paths`` dictionary."""
paths = list(self.find_files(patterns=patterns, dirs=dirs, ignore=ignore))
for path in sphinx.util.status_iterator(
for path in sphinx.util.display.status_iterator(
paths,
colorize("bold", "[AutoAPI] Reading files... "),
"darkgreen",
Expand Down Expand Up @@ -290,7 +290,7 @@ def add_object(self, obj):

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

def output_rst(self, root, source_suffix):
for _, obj in sphinx.util.status_iterator(
for _, obj in sphinx.util.display.status_iterator(
self.objects.items(),
colorize("bold", "[AutoAPI] ") + "Rendering Data... ",
length=len(self.objects),
Expand Down
2 changes: 1 addition & 1 deletion autoapi/mappers/python/mapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ def load(self, patterns, dirs, ignore=None):
)
return False

for dir_root, path in sphinx.util.status_iterator(
for dir_root, path in sphinx.util.display.status_iterator(
dir_root_files,
colorize("bold", "[AutoAPI] Reading files... "),
length=len(dir_root_files),
Expand Down

0 comments on commit 0186a3c

Please sign in to comment.