(self)
Flush and close the IO object.

        This method has no effect if the file is already closed.
Flush and close the IO object.
Flush and close the IO object .
def close(self):
        """Flush and close the IO object.

        This method has no effect if the file is already closed.
        """
        if not self.__closed:
            try:
                self.flush()
            finally:
                self.__closed = True
def close ( self ) : if not self . __closed : try : self . flush ( ) finally : self . __closed = True