parameters: (registry, ob)
docstring: Return an adapter factory for `ob` from `registry`
docstring_summary: Return an adapter factory for `ob` from `registry`
docstring_tokens: Return an adapter factory for ob from registry
function: def _find_adapter(registry, ob):
      """Return an adapter factory for `ob` from `registry`"""
      types = _always_object(inspect.getmro(getattr(ob, '__class__', type(ob))))
      for t in types:
          if t in registry:
              return registry[t]
function_tokens: def _find_adapter ( registry , ob ) : types = _always_object ( inspect . getmro ( getattr ( ob , '__class__' , type ( ob ) ) ) ) for t in types : if t in registry : return registry [ t ]