[Python-checkins] cpython (3.3): Clean up error messages raised by save_reduce in _pickle.
alexandre.vassalotti
python-checkins at python.org
Sun Apr 14 11:11:37 CEST 2013
http://hg.python.org/cpython/rev/aa6f41599ef2
changeset: 83339:aa6f41599ef2
branch: 3.3
parent: 83322:8345b0dcb5e2
user: Alexandre Vassalotti <alexandre at peadrop.com>
date: Sun Apr 14 01:28:01 2013 -0700
summary:
Clean up error messages raised by save_reduce in _pickle.
files:
Modules/_pickle.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Modules/_pickle.c b/Modules/_pickle.c
--- a/Modules/_pickle.c
+++ b/Modules/_pickle.c
@@ -2958,7 +2958,7 @@
if (listitems == Py_None)
listitems = NULL;
else if (!PyIter_Check(listitems)) {
- PyErr_Format(PicklingError, "Fourth element of tuple"
+ PyErr_Format(PicklingError, "fourth element of the tuple "
"returned by __reduce__ must be an iterator, not %s",
Py_TYPE(listitems)->tp_name);
return -1;
@@ -2967,7 +2967,7 @@
if (dictitems == Py_None)
dictitems = NULL;
else if (!PyIter_Check(dictitems)) {
- PyErr_Format(PicklingError, "Fifth element of tuple"
+ PyErr_Format(PicklingError, "fifth element of the tuple "
"returned by __reduce__ must be an iterator, not %s",
Py_TYPE(dictitems)->tp_name);
return -1;
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list