classification
Title: remove unneeded handling of '.' and '..' from patlib.Path.iterdir()
Type: Stage: patch review
Components: Library (Lib) Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: sir-sigurd
Priority: normal Keywords: patch

Created on 2020-06-27 13:07 by sir-sigurd, last changed 2020-06-27 13:09 by sir-sigurd.

Pull Requests
URL Status Linked Edit
PR 21179 open sir-sigurd, 2020-06-27 13:09
Messages (1)
msg372465 - (view) Author: Sergey Fedoseev (sir-sigurd) * Date: 2020-06-27 13:07
Currently patlib.Path.iterdir() filters out '.' and '..'. 
It's unneeded since patlib.Path.iterdir() uses os.listdir() under the hood, which returns neither '.' nor '..'.
https://docs.python.org/3/library/os.html#os.listdir
History
Date User Action Args
2020-06-27 13:09:15sir-sigurdsetkeywords: + patch
stage: patch review
pull_requests: + pull_request20336
2020-06-27 13:07:24sir-sigurdcreate