mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-33209: End framing at the end of C implementation of pickle.Pickler.dump(). (GH-6363)
This commit is contained in:
parent
629338f140
commit
c869529ea9
3 changed files with 22 additions and 19 deletions
|
@ -4152,9 +4152,10 @@ dump(PicklerObject *self, PyObject *obj)
|
|||
}
|
||||
|
||||
if (save(self, obj, 0) < 0 ||
|
||||
_Pickler_Write(self, &stop_op, 1) < 0)
|
||||
_Pickler_Write(self, &stop_op, 1) < 0 ||
|
||||
_Pickler_CommitFrame(self) < 0)
|
||||
return -1;
|
||||
|
||||
self->framing = 0;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue