mirror of
https://github.com/python/cpython.git
synced 2025-08-22 17:55:18 +00:00
correct call
This commit is contained in:
parent
97c18ab6a5
commit
02a004ea1d
1 changed files with 1 additions and 3 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue