PyQIODevice: Don't use errorString for failed seek.

This commit is contained in:
Florian Bruhin 2015-05-26 07:52:59 +02:00
parent 6a26bc23ab
commit 460308f388

View File

@ -269,7 +269,7 @@ class PyQIODevice(io.BufferedIOBase):
raise io.UnsupportedOperation("whence = {} is not "
"supported!".format(whence))
if not ok:
raise OSError(self.dev.errorString())
raise OSError("seek failed!")
def truncate(self, size=None): # pylint: disable=unused-argument
raise io.UnsupportedOperation