bpo-37547: add _PyObject_CallMethodOneArg (GH-14685)
This commit is contained in:
committed by
Inada Naoki
parent
2a3d4d9c53
commit
59ad110d7a
@@ -204,8 +204,8 @@ _io__WindowsConsoleIO_close_impl(winconsoleio *self)
|
||||
PyObject *exc, *val, *tb;
|
||||
int rc;
|
||||
_Py_IDENTIFIER(close);
|
||||
res = _PyObject_CallMethodIdObjArgs((PyObject*)&PyRawIOBase_Type,
|
||||
&PyId_close, self, NULL);
|
||||
res = _PyObject_CallMethodIdOneArg((PyObject*)&PyRawIOBase_Type,
|
||||
&PyId_close, self);
|
||||
if (!self->closehandle) {
|
||||
self->handle = INVALID_HANDLE_VALUE;
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user