summaryrefslogtreecommitdiffstats
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)
commit9743b2c2b584b0f0e56e33705e81b8b663dc03c3 (patch)
tree023d6d81cffa8440557dffafb39b9deeee524d42
parente426b71789c1431da6905eb8917a9050a7e5911a (diff)
downloadcpython-9743b2c2b584b0f0e56e33705e81b8b663dc03c3.zip
cpython-9743b2c2b584b0f0e56e33705e81b8b663dc03c3.tar.gz
cpython-9743b2c2b584b0f0e56e33705e81b8b663dc03c3.tar.bz2
give non-iterable TypeError a message (closes #20507)
-rw-r--r--Objects/unicodeobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/unicodeobject.c b/Objects/unicodeobject.c
index e1ff999..89094e0 100644
--- a/Objects/unicodeobject.c
+++ b/Objects/unicodeobject.c
@@ -9493,7 +9493,7 @@ PyUnicode_Join(PyObject *separator, PyObject *seq)
PyObject *last_obj;
unsigned int kind = 0;
- fseq = PySequence_Fast(seq, "");
+ fseq = PySequence_Fast(seq, "can only join an iterable");
if (fseq == NULL) {
return NULL;
}