Match behavior of the pickle.py module more closely.

This commit is contained in:
Neil Schemenauer 2002-03-22 23:02:53 +00:00
parent 79f181395b
commit fa79c65235

View file

@ -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]);