<reponame>hs3city/inf_event_cli
import logging

import yaml

logger = logging.getLogger(__name__)


def read_yaml(filename):
    """Returns dict of parsed data from file"""
    with open(filename, 'r') as stream:
        try:
            parsed_data = (yaml.load(stream))
            return parsed_data
        except yaml.YAMLError as err:
            print(err)
            logger.debug(err)

import logging

import yaml

logger = logging.getLogger(__name__)


def read_yaml(filename):
    """Returns dict of parsed data from file"""
    with open(filename, 'r') as stream:
        try:
            parsed_data = (yaml.load(stream))
            return parsed_data
        except yaml.YAMLError as err:
            print(err)
            logger.debug(err)
Returns dict of parsed data from file