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)