commit | ecccc4f9b888ddfba057119e33e03b4c1ffdfe0e | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Tue Jun 08 20:46:00 2010 +0000 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Tue Jun 08 20:46:00 2010 +0000 |
tree | 949d9d7cf82975a5d7d26db038aa079b375130e4 | |
parent | 649124856aa994629e574c7a7ecf22d3b07f3ca0 [diff] |
sys_pyfile_write() does nothing if file is NULL mywrite() falls back to the C file object if sys_pyfile_write() returns an error. This patch fixes a segfault is Py_FatalError() is called in an early stage of Python initialization.