def parse_info_file(info_file):
    """Parses a info file, returns a dictionary representation.

    Returns an empty dictionary on error.
    """
    try:
        fileobj = open(info_file, 'r')
        try:
            inf = wbz.parse_metadata(fileobj.read())
        finally:
            fileobj.close()
    except __HOLE__, e:
        inf = {}
    return inf
dataset/ETHPy150Open thesamet/webilder/src/webilder/infofile.py/parse_info_file