diff Python/codecs.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 739958134fe5
children 719ee60fc5e2
line wrap: on
line diff