]> granicus.if.org Git - python/commit
Merged revisions 77890 via svnmerge from
authorAntoine Pitrou <solipsis@pitrou.net>
Sun, 31 Jan 2010 22:47:27 +0000 (22:47 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Sun, 31 Jan 2010 22:47:27 +0000 (22:47 +0000)
commit905a2ffe3e5445925a669ab433521ddb66cf1043
treef3a63e9771498b63eebb2797deaede3577695aaf
parent9b661e6ef636bdd71639befc11e7ce71755f6421
Merged revisions 77890 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77890 | antoine.pitrou | 2010-01-31 23:26:04 +0100 (dim., 31 janv. 2010) | 7 lines

  - 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.
........
12 files changed:
Lib/_pyio.py
Lib/test/test_fileio.py
Lib/test/test_io.py
Lib/test/test_largefile.py
Lib/test/test_memoryio.py
Misc/ACKS
Misc/NEWS
Modules/_io/bytesio.c
Modules/_io/fileio.c
Modules/_io/iobase.c
Modules/_io/stringio.c
Modules/_io/textio.c