commit | 8e0ad0cb0bec01a4216230d1003e24fe8c7ab3c7 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Fri Jan 31 21:10:31 2003 +0000 |
committer | Guido van Rossum <guido@python.org> | Fri Jan 31 21:10:31 2003 +0000 |
tree | c056be33c2bb0c9ed812e7a617989a11dbe03cb6 | |
parent | dda583df9a4610d99b99dab961c0f06a2a472e3d [diff] |
Ignore the state returned by __reduce__ if it is Py_None.
diff --git a/Modules/cPickle.c b/Modules/cPickle.c index 24a9f13..08bb8e8 100644 --- a/Modules/cPickle.c +++ b/Modules/cPickle.c
@@ -2086,6 +2086,8 @@ if (size > 2) { state = PyTuple_GET_ITEM(t, 2); + if (state == Py_None) + state = NULL; } if (!( PyTuple_Check(arg_tup) || arg_tup==Py_None )) {