]> granicus.if.org Git - python/commitdiff
Issue #26117: The os.scandir() iterator now closes file descriptor not only
authorSerhiy Storchaka <storchaka@gmail.com>
Mon, 8 Feb 2016 15:57:22 +0000 (17:57 +0200)
committerSerhiy Storchaka <storchaka@gmail.com>
Mon, 8 Feb 2016 15:57:22 +0000 (17:57 +0200)
when the iteration is finished, but when it was failed with error.

1  2 
Misc/NEWS
Modules/posixmodule.c

diff --cc Misc/NEWS
index e6590b5a46ceff8b335f3ccf845e7cbf87aeb04f,66b8d36124b59efa5fd7ee08e90a87d288881808..0c7d18ec291fec05f609ad13279bf190896844a9
+++ b/Misc/NEWS
@@@ -170,9 -73,9 +170,12 @@@ Core and Builtin
  Library
  -------
  
+ - Issue #26117: The os.scandir() iterator now closes file descriptor not only
+   when the iteration is finished, but when it was failed with error.
 +- Issue #25949: __dict__ for an OrderedDict instance is now created only when
 +  needed.
 +
  - Issue #25911: Restored support of bytes paths in os.walk() on Windows.
  
  - Issue #26045: Add UTF-8 suggestion to error message when posting a
Simple merge