def read_mime_types(file):
    try:
        f = open(file)
    except __HOLE__:
        return None
    db = MimeTypes()
    db.readfp(f, True)
    return db.types_map[True]
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/mimetypes.py/read_mime_types