Skip to content

Commit

Permalink
Update wording on SimpleReader.child_readers. Rename 'child_readers' …
Browse files Browse the repository at this point in the history
…to simply 'children'.
  • Loading branch information
jaraco committed Apr 11, 2020
1 parent 7725ac5 commit 09786d6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions importlib_resources/abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,10 @@ def package(self):
"""

@abc.abstractmethod
def child_readers(self) -> List['SimpleReader']:
def children(self) -> List['SimpleReader']:
"""
Obtain an iterable of ResourceReader for available
child virtual packages of this one.
Obtain an iterable of SimpleReader for available
child containers (e.g. directories).
"""

@abc.abstractmethod
Expand Down Expand Up @@ -214,7 +214,7 @@ def iterdir(self):
ResourceHandle(self, name)
for name in self.resources
)
dirs = map(ResourceContainer, self.child_readers())
dirs = map(ResourceContainer, self.children())
return itertools.chain(files, dirs)

def open(self, *args, **kwargs):
Expand Down

0 comments on commit 09786d6

Please sign in to comment.