mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
Match behavior of the pickle.py module more closely.
This commit is contained in:
parent
79f181395b
commit
fa79c65235
1 changed files with 5 additions and 0 deletions
|
@ -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]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue