Searched refs:pwrt (Results 1 – 2 of 2) sorted by relevance
1853 PyObject *pwrt; in _multibytecodec_MultibyteStreamWriter_reset_impl() local1858 pwrt = multibytecodec_encode(self->codec, &self->state, in _multibytecodec_MultibyteStreamWriter_reset_impl()1866 if (pwrt == NULL) in _multibytecodec_MultibyteStreamWriter_reset_impl()1869 assert(PyBytes_Check(pwrt)); in _multibytecodec_MultibyteStreamWriter_reset_impl()1870 if (PyBytes_Size(pwrt) > 0) { in _multibytecodec_MultibyteStreamWriter_reset_impl()1873 wr = _PyObject_CallMethodIdOneArg(self->stream, &PyId_write, pwrt); in _multibytecodec_MultibyteStreamWriter_reset_impl()1875 Py_DECREF(pwrt); in _multibytecodec_MultibyteStreamWriter_reset_impl()1879 Py_DECREF(pwrt); in _multibytecodec_MultibyteStreamWriter_reset_impl()
1616 PyObject *pwrt; in mbstreamwriter_reset() local1619 pwrt = multibytecodec_encode(self->codec, &self->state, in mbstreamwriter_reset()1627 if (pwrt == NULL) in mbstreamwriter_reset()1630 if (PyString_Size(pwrt) > 0) { in mbstreamwriter_reset()1632 wr = PyObject_CallMethod(self->stream, "write", "O", pwrt); in mbstreamwriter_reset()1634 Py_DECREF(pwrt); in mbstreamwriter_reset()1638 Py_DECREF(pwrt); in mbstreamwriter_reset()