Skip to content

Commit cfec5b1

Browse files
authored
remove new line in pickle exception message (GH-31782)
1 parent c6325b1 commit cfec5b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Modules/_pickle.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -6073,7 +6073,7 @@ load_persid(UnpicklerObject *self)
60736073
else {
60746074
PickleState *st = _Pickle_GetGlobalState();
60756075
PyErr_SetString(st->UnpicklingError,
6076-
"A load persistent id instruction was encountered,\n"
6076+
"A load persistent id instruction was encountered, "
60776077
"but no persistent_load function was specified.");
60786078
return -1;
60796079
}
@@ -6100,7 +6100,7 @@ load_binpersid(UnpicklerObject *self)
61006100
else {
61016101
PickleState *st = _Pickle_GetGlobalState();
61026102
PyErr_SetString(st->UnpicklingError,
6103-
"A load persistent id instruction was encountered,\n"
6103+
"A load persistent id instruction was encountered, "
61046104
"but no persistent_load function was specified.");
61056105
return -1;
61066106
}

0 commit comments

Comments
 (0)