Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Remove newline character in an error message generated by the pickle module.
4 changes: 2 additions & 2 deletions Modules/_pickle.c
Original file line number Diff line number Diff line change
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