mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
bpo-37483: add _PyObject_CallOneArg() function (#14558)
This commit is contained in:
parent
9d40554e0d
commit
196a530e00
44 changed files with 128 additions and 146 deletions
|
@ -1240,7 +1240,7 @@ csv_writerow(WriterObj *self, PyObject *seq)
|
|||
if (line == NULL) {
|
||||
return NULL;
|
||||
}
|
||||
result = PyObject_CallFunctionObjArgs(self->write, line, NULL);
|
||||
result = _PyObject_CallOneArg(self->write, line);
|
||||
Py_DECREF(line);
|
||||
return result;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue