src/eric7/DebugClients/Python/AsyncFile.py

branch
eric7
changeset 10683
779cda568acb
parent 10652
f788c1657f91
child 11090
f5f5f5803935
equal deleted inserted replaced
10682:47be220abdaf 10683:779cda568acb
301 301
302 def seek(self, offset, whence=0): # noqa: U100 302 def seek(self, offset, whence=0): # noqa: U100
303 """ 303 """
304 Public method to move the filepointer. 304 Public method to move the filepointer.
305 305
306 @param offset offset to move the filepointer to 306 @param offset offset to move the file pointer to (unused)
307 @type int 307 @type int
308 @param whence position the offset relates to 308 @param whence position the offset relates to (unused)
309 @type int 309 @type int
310 @exception OSError This method is not supported and always raises an 310 @exception OSError This method is not supported and always raises an
311 OSError. 311 OSError.
312 """ 312 """
313 raise OSError((29, "[Errno 29] Illegal seek")) 313 raise OSError((29, "[Errno 29] Illegal seek"))
323 323
324 def truncate(self, size=-1): # noqa: U100 324 def truncate(self, size=-1): # noqa: U100
325 """ 325 """
326 Public method to truncate the file. 326 Public method to truncate the file.
327 327
328 @param size size to truncate to 328 @param size size to truncate to (unused)
329 @type int 329 @type int
330 @exception OSError This method is not supported and always raises an 330 @exception OSError This method is not supported and always raises an
331 OSError. 331 OSError.
332 """ 332 """
333 raise OSError((29, "[Errno 29] Illegal seek")) 333 raise OSError((29, "[Errno 29] Illegal seek"))

eric ide

mercurial