mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
bpo-37502: handle default parameter for buffers argument of pickle.loads correctly (GH-14593)
This commit is contained in:
parent
93e8aa62cf
commit
898318b53d
3 changed files with 7 additions and 1 deletions
|
@ -1653,7 +1653,7 @@ _Unpickler_SetInputEncoding(UnpicklerObject *self,
|
|||
static int
|
||||
_Unpickler_SetBuffers(UnpicklerObject *self, PyObject *buffers)
|
||||
{
|
||||
if (buffers == NULL) {
|
||||
if (buffers == NULL || buffers == Py_None) {
|
||||
self->buffers = NULL;
|
||||
}
|
||||
else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue