Browse Source

give non-iterable TypeError a message (closes #20507)

pull/9921/head
Benjamin Peterson 13 years ago
parent
commit
9743b2c2b5
  1. 2
      Objects/unicodeobject.c

2
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;
}

Loading…
Cancel
Save