(self)
Close the file.

        A closed file cannot be used for further I/O operations.  close() may be
        called more than once without error.
Close the file.
Close the file .
def close(self):
        """Close the file.

        A closed file cannot be used for further I/O operations.  close() may be
        called more than once without error.
        """
        if not self.closed:
            try:
                if self._closefd:
                    os.close(self._fd)
            finally:
                super().close()
def close ( self ) : if not self . closed : try : if self . _closefd : os . close ( self . _fd ) finally : super ( ) . close ( )