def searchFileFor(file, name):
    try:
        fp = open(file)
    except:
        return None
    try:
        lines = fp.readlines()
    finally:
        fp.close()
    for line in lines:
        idx = line.find('#')
        if idx != -1:
            line = line[:idx]
        if not line:
            continue
        parts = line.split()
        if name.lower() in [s.lower() for s in parts[1:]]:
            return parts[0]
    return None
Creates a Fake Django ORM.
dataset/ETHPy150Open kuri65536/python-for-android/python-modules/twisted/twisted/names/hosts.py/searchFileFor--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/South-1.0.2/south/orm.py/FakeORM