Searched refs:search_function (Results 1 – 9 of 9) sorted by relevance
27 PyObject *search_function35 PyObject *search_function
71 def search_function(encoding): function156 codecs.register(search_function)
62 _codecs_register(PyObject *module, PyObject *search_function) in _codecs_register() argument65 if (PyCodec_Register(search_function)) in _codecs_register()82 _codecs_unregister(PyObject *module, PyObject *search_function) in _codecs_unregister() argument85 if (PyCodec_Unregister(search_function) < 0) { in _codecs_unregister()
34 int PyCodec_Register(PyObject *search_function) in PyCodec_Register() argument39 if (search_function == NULL) { in PyCodec_Register()43 if (!PyCallable_Check(search_function)) { in PyCodec_Register()47 return PyList_Append(interp->codec_search_path, search_function); in PyCodec_Register()54 PyCodec_Unregister(PyObject *search_function) in PyCodec_Unregister() argument67 if (item == search_function) { in PyCodec_Unregister()
6 .. c:function:: int PyCodec_Register(PyObject *search_function)13 .. c:function:: int PyCodec_Unregister(PyObject *search_function)
1652 search_function = mock.Mock()1653 codecs.register(search_function)1655 search_function.assert_called_with(name)1656 search_function.reset_mock()1658 codecs.unregister(search_function)1660 search_function.assert_not_called()3497 def search_function(encoding): function3503 codecs.register(search_function)3504 self.addCleanup(codecs.unregister, search_function)
24 def search_function(encoding): function61 codecs.register(search_function)62 self.addCleanup(codecs.unregister, search_function)
159 .. function:: register(search_function)171 .. function:: unregister(search_function)
278 PyCodec_Register:PyObject*:search_function:+1: