(self)
Close the file.
Close the file.
Close the file .
def close(self):
        """Close the file."""
        if hasattr(self, '_file'):
            try:
                if hasattr(self._file, 'close'):
                    self._file.close()
            finally:
                del self._file
def close ( self ) : if hasattr ( self , '_file' ) : try : if hasattr ( self . _file , 'close' ) : self . _file . close ( ) finally : del self . _file