remove new line in pickle exception message (GH-31782)

This commit is contained in:
Harshil 2022-11-07 13:13:39 +05:30 committed by GitHub
parent c6325b1c9f
commit cfec5b18bf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6073,7 +6073,7 @@ load_persid(UnpicklerObject *self)
else {
PickleState *st = _Pickle_GetGlobalState();
PyErr_SetString(st->UnpicklingError,
"A load persistent id instruction was encountered,\n"
"A load persistent id instruction was encountered, "
"but no persistent_load function was specified.");
return -1;
}
@ -6100,7 +6100,7 @@ load_binpersid(UnpicklerObject *self)
else {
PickleState *st = _Pickle_GetGlobalState();
PyErr_SetString(st->UnpicklingError,
"A load persistent id instruction was encountered,\n"
"A load persistent id instruction was encountered, "
"but no persistent_load function was specified.");
return -1;
}