[Python-checkins] cpython (2.7): give non-iterable TypeError a message (closes #20507)
benjamin.peterson
python-checkins at python.org
Sat Feb 15 19:03:30 CET 2014
http://hg.python.org/cpython/rev/f8e1fdf79823
changeset: 89200:f8e1fdf79823
branch: 2.7
parent: 89196:655dffe47b5a
user: Benjamin Peterson <benjamin at python.org>
date: Sat Feb 15 13:02:52 2014 -0500
summary:
give non-iterable TypeError a message (closes #20507)
files:
Objects/unicodeobject.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -5618,7 +5618,7 @@
PyObject *item;
Py_ssize_t i;
- fseq = PySequence_Fast(seq, "");
+ fseq = PySequence_Fast(seq, "can only join an iterable");
if (fseq == NULL) {
return NULL;
}
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list