From: Harshil <37377066+harshil21@users.noreply.github.com> Date: Mon, 7 Nov 2022 07:43:39 +0000 (+0530) Subject: remove new line in pickle exception message (GH-31782) X-Git-Tag: v3.12.0a2~94 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfec5b18bf4af9813ac3d83c5489469af4844708;p=thirdparty%2FPython%2Fcpython.git remove new line in pickle exception message (GH-31782) --- diff --git a/Modules/_pickle.c b/Modules/_pickle.c index 80bb2126de7e..51e0a2415921 100644 --- a/Modules/_pickle.c +++ b/Modules/_pickle.c @@ -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; }