Mercurial > cpython-lru_cache-weakref
diff Python/pythonrun.c @ 72456:0f5b64630fda 2.7
Issue #7732: Fix a crash on importing a module if a directory has the same name
than a Python module (e.g. "__init__.py"): don't close the file twice.
PyFile_FromFile() does also close the file if PyString_FromString() failed. It
did already close the file on fill_file_fields() error (e.g. if the file is a
directory).
| author | Victor Stinner <victor.stinner@haypocalc.com> |
|---|---|
| date | Fri, 23 Sep 2011 19:37:03 +0200 |
| parents | 97a75fccd7c8 |
| children | a0f43f4481e0 |
