Lines Matching refs:adapted
92 PyObject *adapted = PyObject_CallFunctionObjArgs(adapter, obj, NULL); in pysqlite_microprotocols_adapt() local
93 return adapted; in pysqlite_microprotocols_adapt()
98 PyObject *adapted = PyObject_CallMethod(proto, "__adapt__", "O", obj); in pysqlite_microprotocols_adapt() local
99 if (adapted) { in pysqlite_microprotocols_adapt()
100 if (adapted != Py_None) { in pysqlite_microprotocols_adapt()
101 return adapted; in pysqlite_microprotocols_adapt()
103 Py_DECREF(adapted); in pysqlite_microprotocols_adapt()
113 PyObject *adapted = PyObject_CallMethod(obj, "__conform__","O", proto); in pysqlite_microprotocols_adapt() local
114 if (adapted) { in pysqlite_microprotocols_adapt()
115 if (adapted != Py_None) { in pysqlite_microprotocols_adapt()
116 return adapted; in pysqlite_microprotocols_adapt()
118 Py_DECREF(adapted); in pysqlite_microprotocols_adapt()