Searched refs:cofunc (Results 1 – 2 of 2) sorted by relevance
248 static PyObject *cofunc = NULL; in getmultibytecodec() local250 if (cofunc == NULL) { in getmultibytecodec()254 cofunc = PyObject_GetAttrString(mod, "__create_codec"); in getmultibytecodec()257 return cofunc; in getmultibytecodec()263 PyObject *codecobj, *r, *cofunc; in getcodec() local276 cofunc = getmultibytecodec(); in getcodec()277 if (cofunc == NULL) in getcodec()294 r = PyObject_CallOneArg(cofunc, codecobj); in getcodec()
245 static PyObject *cofunc = NULL; in getmultibytecodec() local247 if (cofunc == NULL) { in getmultibytecodec()251 cofunc = PyObject_GetAttrString(mod, "__create_codec"); in getmultibytecodec()254 return cofunc; in getmultibytecodec()260 PyObject *codecobj, *r, *cofunc; in getcodec() local270 cofunc = getmultibytecodec(); in getcodec()271 if (cofunc == NULL) in getcodec()289 r = PyObject_CallFunctionObjArgs(cofunc, codecobj, NULL); in getcodec()