Lines Matching refs:adapted
79 PyObject *adapter, *key, *adapted; in pysqlite_microprotocols_adapt() local
94 adapted = PyObject_CallOneArg(adapter, obj); in pysqlite_microprotocols_adapt()
96 return adapted; in pysqlite_microprotocols_adapt()
107 adapted = PyObject_CallOneArg(adapter, obj); in pysqlite_microprotocols_adapt()
110 if (adapted == Py_None) { in pysqlite_microprotocols_adapt()
111 Py_DECREF(adapted); in pysqlite_microprotocols_adapt()
113 else if (adapted || !PyErr_ExceptionMatches(PyExc_TypeError)) { in pysqlite_microprotocols_adapt()
114 return adapted; in pysqlite_microprotocols_adapt()
126 adapted = PyObject_CallOneArg(adapter, proto); in pysqlite_microprotocols_adapt()
129 if (adapted == Py_None) { in pysqlite_microprotocols_adapt()
130 Py_DECREF(adapted); in pysqlite_microprotocols_adapt()
132 else if (adapted || !PyErr_ExceptionMatches(PyExc_TypeError)) { in pysqlite_microprotocols_adapt()
133 return adapted; in pysqlite_microprotocols_adapt()