def adapt(adaptee, to_protocol, default=AdaptationError):
    manager = get_global_adaptation_manager()
    return manager.adapt(adaptee, to_protocol, default)
Attempt to adapt an object to a given protocol.
dataset/ETHPy150Open enthought/traits/traits/adaptation/adaptation_manager.py/adapt