Home | History | Annotate | Download | only in _io

Lines Matching defs:codec_info

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