correct call

This commit is contained in:
Benjamin Peterson 2010-05-07 16:42:51 +00:00
parent 97c18ab6a5
commit 02a004ea1d
1 changed files with 1 additions and 3 deletions

View File

@ -49,9 +49,7 @@ static void
sets(PyObject *v, int i, const char* val)
{
if (val) {
PyObject *o = PyUnicode_DecodeFSDefault(val, strlen(val),
Py_FileSystemDefaultEncoding,
"surrogateescape");
PyObject *o = PyUnicode_DecodeFSDefault(val);
PyStructSequence_SET_ITEM(v, i, o);
}
else {