mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
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.
This commit is contained in:
parent
ad1a25f499
commit
34fd4c2019
26 changed files with 38 additions and 40 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue