mirror of
https://github.com/python/cpython.git
synced 2026-01-06 15:32:22 +00:00
gh-98832: Change wording in docstring of pathlib.Path.iterdir (GH-98833)
Found while working on https://github.com/python/cpython/issues/98829 Automerge-Triggered-By: GH:AlexWaygood
This commit is contained in:
parent
283ab0e1c0
commit
87f5180cd7
2 changed files with 5 additions and 2 deletions
|
|
@ -867,8 +867,10 @@ def samefile(self, other_path):
|
|||
return os.path.samestat(st, other_st)
|
||||
|
||||
def iterdir(self):
|
||||
"""Iterate over the files in this directory. Does not yield any
|
||||
result for the special paths '.' and '..'.
|
||||
"""Yield path objects of the directory contents.
|
||||
|
||||
The children are yielded in arbitrary order, and the
|
||||
special entries '.' and '..' are not included.
|
||||
"""
|
||||
for name in os.listdir(self):
|
||||
yield self._make_child_relpath(name)
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
Changes wording of docstring for :func:`pathlib.Path.iterdir`.
|
||||
Loading…
Add table
Add a link
Reference in a new issue