(self, path)
Read the adapter config YAML file and return the YAML datastructure.

        :param path: A ``FilePath`` representing the path to the YAML file, or
            self._default_file if None.

        :raises: ``NoConfiguration`` if the adapter file was not found.

        :raises: ``InvalidConfiguration`` if if the file was not valid YAML.
Read the adapter config YAML file and return the YAML datastructure.
Read the adapter config YAML file and return the YAML datastructure .
def _read_from_yaml_file(self, path):
        """
        Read the adapter config YAML file and return the YAML datastructure.

        :param path: A ``FilePath`` representing the path to the YAML file, or
            self._default_file if None.

        :raises: ``NoConfiguration`` if the adapter file was not found.

        :raises: ``InvalidConfiguration`` if if the file was not valid YAML.
        """
        if path is None:
            path = FilePath(self._default_file)
        try:
            content = path.getContent()
        except IOError:
            raise NoConfiguration(path.path)

        try:
            yaml = safe_load(content)
            return yaml
        except YAMLError:
            raise InvalidConfiguration()
def _read_from_yaml_file ( self , path ) : if path is None : path = FilePath ( self . _default_file ) try : content = path . getContent ( ) except IOError : raise NoConfiguration ( path . path ) try : yaml = safe_load ( content ) return yaml except YAMLError : raise InvalidConfiguration ( )