summaryrefslogtreecommitdiffstats
path: root/Modules/_pickle.c
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2018-11-05 14:20:25 (GMT)
committerGitHub <noreply@github.com>2018-11-05 14:20:25 (GMT)
commit34fd4c20198dea6ab2fe8dc6d32d744d9bde868d (patch)
tree7219828610de765ae5c41883b590d5c6f598ade2 /Modules/_pickle.c
parentad1a25f499362eaf9cbfcafa0b8e2454eb43dcf1 (diff)
downloadcpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.zip
cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.tar.gz
cpython-34fd4c20198dea6ab2fe8dc6d32d744d9bde868d.tar.bz2
bpo-35133: Fix mistakes when concatenate string literals on different lines. (GH-10284)
Two kind of mistakes: 1. Missed space. After concatenating there is no space between words. 2. Missed comma. Causes unintentional concatenating in a list of strings.
Diffstat (limited to 'Modules/_pickle.c')
-rw-r--r--Modules/_pickle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
index 0e3bd22..2166d29 100644
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -4612,7 +4612,7 @@ Pickler_set_memo(PicklerObject *self, PyObject *obj)
}
else {
PyErr_Format(PyExc_TypeError,
- "'memo' attribute must be a PicklerMemoProxy object"
+ "'memo' attribute must be a PicklerMemoProxy object "
"or dict, not %.200s", Py_TYPE(obj)->tp_name);
return -1;
}
@@ -7048,7 +7048,7 @@ Unpickler_set_memo(UnpicklerObject *self, PyObject *obj)
}
else {
PyErr_Format(PyExc_TypeError,
- "'memo' attribute must be an UnpicklerMemoProxy object"
+ "'memo' attribute must be an UnpicklerMemoProxy object "
"or dict, not %.200s", Py_TYPE(obj)->tp_name);
return -1;
}