mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +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 {
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue