Kaydet (Commit) fa79c652 authored tarafından Neil Schemenauer's avatar Neil Schemenauer

Match behavior of the pickle.py module more closely.

üst 79f18139
......@@ -3843,6 +3843,11 @@ load(Unpicklerobject *self) {
break;
continue;
case '\0':
/* end of file */
PyErr_SetNone(PyExc_EOFError);
break;
default:
cPickle_ErrFormat(UnpicklingError, "invalid load key, '%s'.",
"c", s[0]);
......
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