bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507)

This commit is contained in:
Dong-hee Na 2020-02-14 16:50:19 +09:00 • committed by GitHub
parent d212c3c55d
commit 9aeb0ef930
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 14 additions and 16 deletions

View file

@ -578,7 +578,7 @@ _io_BufferedRWPair___init__(PyObject *self, PyObject *args, PyObject *kwargs)
PyObject *writer;
Py_ssize_t buffer_size = DEFAULT_BUFFER_SIZE;
if ((Py_TYPE(self) == &PyBufferedRWPair_Type) &&
if (Py_IS_TYPE(self, &PyBufferedRWPair_Type) &&
!_PyArg_NoKeywords("BufferedRWPair", kwargs)) {
goto exit;
}
@ -672,4 +672,4 @@ skip_optional_pos:
exit:
return return_value;
}
/*[clinic end generated code: output=7246104f6c7d3167 input=a9049054013a1b77]*/
/*[clinic end generated code: output=7d9ad40c95bdd808 input=a9049054013a1b77]*/