Package translate :: Package storage :: Module test_zipfile :: Class FixedStringIO
[hide private]
[frames] | no frames]

Class FixedStringIO

source code

                  ini.StringIO --+    
                                 |    
misc.test_zipfileext.FixedStringIO --+
                                     |
                                    FixedStringIO

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

Inherited from 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: ini.StringIO.truncate
(inherited documentation)