mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
remove new line in pickle exception message (GH-31782)
This commit is contained in:
parent
c6325b1c9f
commit
cfec5b18bf
1 changed files with 2 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue