Kaydet (Commit) 8e0ad0cb authored tarafından Guido van Rossum's avatar Guido van Rossum

Ignore the state returned by __reduce__ if it is Py_None.

üst dda583df
......@@ -2086,6 +2086,8 @@ save(Picklerobject *self, PyObject *args, int pers_save)
if (size > 2) {
state = PyTuple_GET_ITEM(t, 2);
if (state == Py_None)
state = NULL;
}
if (!( PyTuple_Check(arg_tup) || arg_tup==Py_None )) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment