Package translate :: Package misc :: Module test_zipfileext :: Class FixedStringIO
[hide private]
[frames] | no frames]

Class FixedStringIO

source code

storage.ini.StringIO --+
                       |
                      FixedStringIO
Known Subclasses:

Instance Methods [hide private]
 
truncate(self, size=None)
Truncate the file's size.
source code

Inherited from storage.ini.StringIO: __init__, __iter__, close, flush, getvalue, isatty, next, read, readline, readlines, seek, tell, write, writelines

Method Details [hide private]

truncate(self, size=None)

source code 

Truncate the file's size.

If the optional size argument is present, the file is truncated to (at most) that size. The size defaults to the current position. The current file position is not changed unless the position is beyond the new file size.

If the specified size exceeds the file's current size, the file remains unchanged.

Overrides: storage.ini.StringIO.truncate
(inherited documentation)