]> granicus.if.org Git - python/commit
Issue #23694: Enhance _Py_fopen(), it now raises an exception on error
authorVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Mar 2015 00:39:23 +0000 (01:39 +0100)
committerVictor Stinner <victor.stinner@gmail.com>
Wed, 18 Mar 2015 00:39:23 +0000 (01:39 +0100)
commite42ccd2bfd7a05a02c1020b819e4ee5b26041d01
tree071843848770176c8aed3f965d783738182847c3
parenta555cfcb73cf677a99d29af6fa0bcfe4c35a2aeb
Issue #23694: Enhance _Py_fopen(), it now raises an exception on error

* If fopen() fails, OSError is raised with the original filename object.
* The GIL is now released while calling fopen()
Modules/_ssl.c
Modules/zipimport.c
Python/errors.c
Python/fileutils.c
Python/import.c