def is_yaml()

in lambda/source/utils.py [0:0]


def is_yaml(file):
    with open(file, 'r') as stream:
        try:
            yaml.load(stream)
            return True
        except Exception as e:
            return False