summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-02-15 18:02:52 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-02-15 18:02:52 (GMT)
commit7a91bf8675bbe950b8fd850605b2e126abb95024 (patch)
tree4f4d2e80953d6d6e011b379d58854e4f573be0ca /Objects
parent207b5f466da2239b4ad4d2e069f45ec95c633bb1 (diff)
downloadcpython-7a91bf8675bbe950b8fd850605b2e126abb95024.zip
cpython-7a91bf8675bbe950b8fd850605b2e126abb95024.tar.gz
cpython-7a91bf8675bbe950b8fd850605b2e126abb95024.tar.bz2
give non-iterable TypeError a message (closes #20507)
Diffstat (limited to 'Objects')
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index 09e41b9..29f9bce 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -5618,7 +5618,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
PyObject *item;
Py_ssize_t i;
- fseq = PySequence_Fast(seq, "");
+ fseq = PySequence_Fast(seq, "can only join an iterable");
if (fseq == NULL) {
return NULL;
}