raylu added the comment: os.listdir should always return NotADirectoryError when run on a regular file. Users shouldn't have to special-case win32/FileNotFoundError.
---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29366> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com