commit | f3fa07470381b4f54b2d3f911fc22624e9b0b27d | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Sun Jan 31 22:26:04 2010 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Sun Jan 31 22:26:04 2010 +0000 |
tree | 5368b993641d34b3824a79896bf18c8f9097ce5c | |
parent | e70c72c06b169a36170ab68ec52bda9a87c16274 [diff] |
- Issue #6939: Fix file I/O objects in the `io` module to keep the original file position when calling `truncate()`. It would previously change the file position to the given argument, which goes against the tradition of ftruncate() and other truncation APIs. Patch by Pascal Chambon.