def _read_file(path):
    '''
    Reads and returns the contents of a text file
    '''
    try:
        with salt.utils.flopen(path, 'rb') as contents:
            return [salt.utils.to_str(line) for line in contents.readlines()]
    except (OSError, __HOLE__):
        return ''
dataset/ETHPy150Open saltstack/salt/salt/modules/debian_ip.py/_read_file