commit | bf816223dfe8f1d36a020b4bc02060b8d1ce7d26 | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Thu Jun 30 23:25:47 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Thu Jun 30 23:25:47 2011 +0200 |
tree | 3651ee82210cb2110b6808a2545471cac321a22f | |
parent | 61600cb0c357fcdca048cee586865a26417dbd70 [diff] |
Issue #12451: Add support.create_empty_file() We don't need to create a temporary buffered binary or text file object just to create an empty file. Replace also os.fdopen(handle).close() by os.close(handle).