(file_name)
Return a dict parsed from a YAML file within the config directory.

    Args:
        file_name: String that defines the config file name.

    Returns:
        A dict with the parsed YAML content from the config file or
        an empty dict if the file is not found or YAML was unable
        to parse it.
Return a dict parsed from a YAML file within the config directory.
Return a dict parsed from a YAML file within the config directory .
def get_yaml_config(file_name):
    """Return a dict parsed from a YAML file within the config directory.

    Args:
        file_name: String that defines the config file name.

    Returns:
        A dict with the parsed YAML content from the config file or
        an empty dict if the file is not found or YAML was unable
        to parse it.
    """
    path = get_config_path(file_name)
    if not path:
        return {}

    with open(path, 'r') as fh:
        try:
            return yaml.safe_load(fh)
        except yaml.parser.ParserError as exception:
            # pylint: disable=logging-format-interpolation
            logger.warning((
                'Unable to read in YAML config file, '
                'with error: {0!s}').format(exception))
            return {}
def get_yaml_config ( file_name ) : path = get_config_path ( file_name ) if not path : return { } with open ( path , 'r' ) as fh : try : return yaml . safe_load ( fh ) except yaml . parser . ParserError as exception : # pylint: disable=logging-format-interpolation logger . warning ( ( 'Unable to read in YAML config file, ' 'with error: {0!s}' ) . format ( exception ) ) return { }