]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Issue #6939: Fix file I/O objects in the `io` module to keep the original
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 27 Jan 2010 21:48:46 +0000 (21:48 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 27 Jan 2010 21:48:46 +0000 (21:48 +0000)
commitca5a06aaa968ae767329f8afedbaf17fc337416f
tree1c0f8bfdd0469ce707d41b99371855f6f3f8ae91
parentf3330144679453a66b9baf54963462d8cbd095f8
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.
Lib/io.py
Lib/test/test_fileio.py
Lib/test/test_io.py
Lib/test/test_memoryio.py
Misc/NEWS
Modules/_bytesio.c
Modules/_fileio.c