Lines Matching refs:codec_info
850 _textiowrapper_set_decoder(textio *self, PyObject *codec_info, in _textiowrapper_set_decoder() argument
869 self->decoder = _PyCodecInfo_GetIncrementalDecoder(codec_info, errors); in _textiowrapper_set_decoder()
905 _textiowrapper_set_encoder(textio *self, PyObject *codec_info, in _textiowrapper_set_encoder() argument
925 self->encoder = _PyCodecInfo_GetIncrementalEncoder(codec_info, errors); in _textiowrapper_set_encoder()
930 if (_PyObject_LookupAttrId(codec_info, &PyId_name, &res) < 0) { in _textiowrapper_set_encoder()
1028 PyObject *raw, *codec_info = NULL; in _io_TextIOWrapper___init___impl() local
1144 codec_info = _PyCodec_LookupTextEncoding(encoding, "codecs.open()"); in _io_TextIOWrapper___init___impl()
1145 if (codec_info == NULL) { in _io_TextIOWrapper___init___impl()
1167 if (_textiowrapper_set_decoder(self, codec_info, PyUnicode_AsUTF8(errors)) != 0) in _io_TextIOWrapper___init___impl()
1171 if (_textiowrapper_set_encoder(self, codec_info, PyUnicode_AsUTF8(errors)) != 0) in _io_TextIOWrapper___init___impl()
1175 Py_CLEAR(codec_info); in _io_TextIOWrapper___init___impl()
1217 Py_XDECREF(codec_info); in _io_TextIOWrapper___init___impl()
1267 PyObject *codec_info = _PyCodec_LookupTextEncoding( in textiowrapper_change_encoding() local
1269 if (codec_info == NULL) { in textiowrapper_change_encoding()
1272 if (_textiowrapper_set_decoder(self, codec_info, c_errors) != 0 || in textiowrapper_change_encoding()
1273 _textiowrapper_set_encoder(self, codec_info, c_errors) != 0) { in textiowrapper_change_encoding()
1274 Py_DECREF(codec_info); in textiowrapper_change_encoding()
1277 Py_DECREF(codec_info); in textiowrapper_change_encoding()