Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ccda8a

Browse files
committed
SF patch #102548, fix for bug #121013, by [email protected].
Fixes a typo that caused "".join(u"this is a test") to dump core.
1 parent c113465 commit 2ccda8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Objects/stringobject.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -835,7 +835,7 @@ string_join(PyStringObject *self, PyObject *args)
835835
if (PyUnicode_Check(item)) {
836836
Py_DECREF(res);
837837
Py_DECREF(seq);
838-
return PyUnicode_Join((PyObject *)self, seq);
838+
return PyUnicode_Join((PyObject *)self, orig);
839839
}
840840
PyErr_Format(PyExc_TypeError,
841841
"sequence item %i: expected string,"

0 commit comments

Comments
 (0)