def __init__(self, space): W_RawIOBase.__init__(self, space) self.fd = -1 self.readable = False self.writable = False self.seekable = -1 self.closefd = True self.w_name = None
def __init__(self, space): W_RawIOBase.__init__(self, space) self.handle = rwin32.INVALID_HANDLE_VALUE self.fd = -1 self.created = 0 self.readable = False self.writable = False self.closehandle = False self.blksize = 0 self.buf = ''
def close_w(self, space): try: W_RawIOBase.close_w(self, space) except OperationError: if not self.closefd: self.fd = -1 raise self._close(space) raise if not self.closefd: self.fd = -1 return self._close(space)
def close_w(self, space): if not self.closefd: self.fd = -1 return self._close(space) W_RawIOBase.close_w(self, space)