def hasKey(obj, key):
    if hasattr(obj, 'has_key') and key in obj:
        return True
    elif hasattr(obj, key):
        return True
    else:
        return False
Determine if 'obj' has 'key'
dataset/ETHPy150Open binhex/moviegrabber/lib/site-packages/Cheetah/NameMapper.py/hasKey