parameters: (self)
docstring: Flush and close the IO object.
  
          This method has no effect if the file is already closed.
docstring_summary: Flush and close the IO object.
docstring_tokens: Flush and close the IO object .
function: def close(self):
          """Flush and close the IO object.
  
          This method has no effect if the file is already closed.
          """
          if not self.__closed:
              self.flush()
              self.__closed = True
function_tokens: def close ( self ) : if not self . __closed : self . flush ( ) self . __closed = True