Skip to content

Commit

Permalink
remove new line in pickle exception message (GH-31782)
Browse files Browse the repository at this point in the history
  • Loading branch information
harshil21 committed Nov 7, 2022
1 parent c6325b1 commit cfec5b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Modules/_pickle.c
Expand Up @@ -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;
}
Expand All @@ -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;
}
Expand Down

0 comments on commit cfec5b1

Please sign in to comment.