parameters: (self)
docstring: Close the file.
docstring_summary: Close the file.
docstring_tokens: Close the file .
function: def close(self):
          """Close the file."""
          if hasattr(self, '_file'):
              if hasattr(self._file, 'close'):
                  self._file.close()
              del self._file
function_tokens: def close ( self ) : if hasattr ( self , '_file' ) : if hasattr ( self . _file , 'close' ) : self . _file . close ( ) del self . _file