summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarshil <37377066+harshil21@users.noreply.github.com>2022-11-07 07:43:39 (GMT)
committerGitHub <noreply@github.com>2022-11-07 07:43:39 (GMT)
commitcfec5b18bf4af9813ac3d83c5489469af4844708 (patch)
treec1587f1a807ac28dc09e1c790c6788d8110f6c09
parentc6325b1c9fe60f72bb3fa4b8570a699e9e97af53 (diff)
downloadcpython-cfec5b18bf4af9813ac3d83c5489469af4844708.zip
cpython-cfec5b18bf4af9813ac3d83c5489469af4844708.tar.gz
cpython-cfec5b18bf4af9813ac3d83c5489469af4844708.tar.bz2
remove new line in pickle exception message (GH-31782)
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 80bb212..51e0a24 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;
}