New submission from Trundle <andy-pyt...@hammerhartes.de>: Create a directory "__init__.py" and execute
>>> import imp >>> imp.find_module('__init__', ['.']) to reproduce that issue. It will crash because Python tries to double-close a file pointer: `call_find_module` will call `PyFile_FromFile`, but `PyFile_FromFile` closes the file pointer if it's a directory (by decrefing the created file object) and ` call_find_module` then closes the already closed file. ---------- components: Library (Lib) messages: 98007 nosy: Trundle severity: normal status: open title: imp.find_module crashes Python if there exists a directory named "__init__.py" type: crash versions: Python 2.6 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue7732> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com