summaryrefslogtreecommitdiffstats
path: root/Objects/stringobject.c
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2014-09-28 16:48:46 (GMT)
committerBenjamin Peterson <benjamin@python.org>2014-09-28 16:48:46 (GMT)
commit1643d5cb08b72cb4f589ddd38db059412a4dcdd1 (patch)
tree8fb181a9a0a9205c4f4850917ac9ab7b1685264b /Objects/stringobject.c
parent9ad23c6c315d09bef659a12a9f7f7123c707ea41 (diff)
downloadcpython-1643d5cb08b72cb4f589ddd38db059412a4dcdd1.zip
cpython-1643d5cb08b72cb4f589ddd38db059412a4dcdd1.tar.gz
cpython-1643d5cb08b72cb4f589ddd38db059412a4dcdd1.tar.bz2
give exception a nice message (closes #22379)
Patch by Yongzhi Pan.
Diffstat (limited to 'Objects/stringobject.c')
-rw-r--r--Objects/stringobject.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Objects/stringobject.c b/Objects/stringobject.c
index 0b6d36c..f95857a 100644
--- a/Objects/stringobject.c
+++ b/Objects/stringobject.c
@@ -1594,7 +1594,7 @@ string_join(PyStringObject *self, PyObject *orig)
Py_ssize_t i;
PyObject *seq, *item;
- seq = PySequence_Fast(orig, "");
+ seq = PySequence_Fast(orig, "can only join an iterable");
if (seq == NULL) {
return NULL;
}