Serhiy Storchaka added the comment: Updated patch addresses new Victor's comments. ---------- Added file: http://bugs.python.org/file41873/scandir_close_3.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue25994> _______________________________________