272 |
272 |
273 def truncate(self, size=-1): |
273 def truncate(self, size=-1): |
274 """ |
274 """ |
275 Public method to truncate the file. |
275 Public method to truncate the file. |
276 |
276 |
277 @param size size to truncaze to (integer) |
277 @param size size to truncate to (integer) |
278 @exception IOError This method is not supported and always raises an |
278 @exception IOError This method is not supported and always raises an |
279 IOError. |
279 IOError. |
280 """ |
280 """ |
281 raise IOError((29, '[Errno 29] Illegal seek')) |
281 raise IOError((29, '[Errno 29] Illegal seek')) |
282 |
282 |