| commit | 037b3ee44e7de00b4653d73d4808c0f679a909a7 | [log] [tgz] |
|---|---|---|
| author | Tim Peters <tim.peters@gmail.com> | Sat Aug 21 06:55:43 2004 +0000 |
| committer | Tim Peters <tim.peters@gmail.com> | Sat Aug 21 06:55:43 2004 +0000 |
| tree | 88ecf25c35a355258bb869acab244cc1b48b4466 | |
| parent | 7109b287cf84cebdfa99b2b0a657d55f6e481be7 [diff] |
Patch 1012740: cStringIO's truncate doesn't
truncate() left the stream position unchanged, which meant the
"truncated" data didn't go away:
>>> io.write('abc')
>>> io.truncate(0)
>>> io.write('xyz')
>>> io.getvalue()
'abcxyz'
Patch by Dima Dorfman.