Fixes a typo that caused "".join(u"this is a test") to dump core.
This commit is contained in:
Guido van Rossum 2000-11-27 18:46:26 +00:00
parent c113465a49
commit 2ccda8a7c4
1 changed files with 1 additions and 1 deletions

View File

@ -835,7 +835,7 @@ string_join(PyStringObject *self, PyObject *args)
if (PyUnicode_Check(item)) {
Py_DECREF(res);
Py_DECREF(seq);
return PyUnicode_Join((PyObject *)self, seq);
return PyUnicode_Join((PyObject *)self, orig);
}
PyErr_Format(PyExc_TypeError,
"sequence item %i: expected string,"