Skip to content

Commit

Permalink
Fix docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
barneygale committed Dec 5, 2024
1 parent c4db2e0 commit 1026a68
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/pathlib/_abc.py
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ def write_text(self, data, encoding=None, errors=None, newline=None):
return f.write(data)

def _scandir(self):
"""Yield os.DirEntry objects of the directory contents.
"""Yield os.DirEntry-like objects of the directory contents.
The children are yielded in arbitrary order, and the
special entries '.' and '..' are not included.
Expand Down
2 changes: 1 addition & 1 deletion Lib/pathlib/_local.py
Original file line number Diff line number Diff line change
Expand Up @@ -628,7 +628,7 @@ def _filter_trailing_slash(self, paths):
yield path_str

def _scandir(self):
"""Yield os.DirEntry objects of the directory contents.
"""Yield os.DirEntry-like objects of the directory contents.
The children are yielded in arbitrary order, and the
special entries '.' and '..' are not included.
Expand Down

0 comments on commit 1026a68

Please sign in to comment.