[Python-checkins] remove new line in pickle exception message (GH-31782)
iritkatriel
webhook-mailer at python.org
Mon Nov 7 02:43:57 EST 2022
https://github.com/python/cpython/commit/cfec5b18bf4af9813ac3d83c5489469af4844708
commit: cfec5b18bf4af9813ac3d83c5489469af4844708
branch: main
author: Harshil <37377066+harshil21 at users.noreply.github.com>
committer: iritkatriel <1055913+iritkatriel at users.noreply.github.com>
date: 2022-11-07T07:43:39Z
summary:
remove new line in pickle exception message (GH-31782)
files:
M Modules/_pickle.c
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;
}
More information about the Python-checkins
mailing list