Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into bpo-43012-remove-pathlib-accessor
  • Loading branch information
barneygale authored Jan 20, 2022
commit d3c363b9194c2dd5717adccd97cc543de886b144
3 changes: 0 additions & 3 deletions Lib/pathlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -925,9 +925,6 @@ def iterdir(self):
result for the special paths '.' and '..'.
"""
for name in os.listdir(self):
if name in {'.', '..'}:
# Yielding a path object for these makes little sense
continue
yield self._make_child_relpath(name)

def _scandir(self):
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.