comparison Python/thread.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 cd8d3c2d3bce
children f5bf91af01ca
comparison
equal deleted inserted replaced
72450:c02e790c4535 72456:0f5b64630fda