remove new line in pickle exception message (GH-31782)
This commit is contained in:
parent
c6325b1c9f
commit
cfec5b18bf
@ -6073,7 +6073,7 @@ load_persid(UnpicklerObject *self)
|
|||||||
else {
|
else {
|
||||||
PickleState *st = _Pickle_GetGlobalState();
|
PickleState *st = _Pickle_GetGlobalState();
|
||||||
PyErr_SetString(st->UnpicklingError,
|
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.");
|
"but no persistent_load function was specified.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
@ -6100,7 +6100,7 @@ load_binpersid(UnpicklerObject *self)
|
|||||||
else {
|
else {
|
||||||
PickleState *st = _Pickle_GetGlobalState();
|
PickleState *st = _Pickle_GetGlobalState();
|
||||||
PyErr_SetString(st->UnpicklingError,
|
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.");
|
"but no persistent_load function was specified.");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user