Issue #13757: Change os.fdlistdir() so that it duplicates the passed file

descriptor (instead of closing it).
This commit is contained in:
Charles-François Natali 2012-01-10 20:25:09 +01:00
parent bda7a80194
commit 76961faaa0
3 changed files with 8 additions and 11 deletions

View file

@ -772,7 +772,7 @@ as internal buffering of data.
.. function:: fdlistdir(fd)
Like :func:`listdir`, but uses a file descriptor instead and always returns
strings. After execution of this function, *fd* will be closed.
strings.
Availability: Unix.