mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
Merge 3.4
This commit is contained in:
commit
8cc80f1d81
3 changed files with 12 additions and 0 deletions
|
@ -1685,6 +1685,9 @@ _multibytecodec_MultibyteStreamWriter_reset_impl(MultibyteStreamWriterObject *se
|
|||
{
|
||||
PyObject *pwrt;
|
||||
|
||||
if (!self->pending)
|
||||
Py_RETURN_NONE;
|
||||
|
||||
pwrt = multibytecodec_encode(self->codec, &self->state,
|
||||
self->pending, NULL, self->errors,
|
||||
MBENC_FLUSH | MBENC_RESET);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue