]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
remove new line in pickle exception message (GH-31782)
authorHarshil <37377066+harshil21@users.noreply.github.com>
Mon, 7 Nov 2022 07:43:39 +0000 (13:13 +0530)
committerGitHub <noreply@github.com>
Mon, 7 Nov 2022 07:43:39 +0000 (07:43 +0000)
Modules/_pickle.c

index 80bb2126de7eef256e5db3a41c947b2406596745..51e0a2415921c8a684a7f3f72c409f4e78efdb47 100644 (file)
@@ -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;
     }