def _find_adapter(registry, ob):
types = _always_object(inspect.getmro(getattr(ob, '<STR_LIT>', type(ob))))<EOL>for t in types:<EOL><INDENT>if t in registry:<EOL><INDENT>return registry[t]<EOL><DEDENT><DEDENT>
Return an adapter factory for `ob` from `registry`