mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507)
This commit is contained in:
parent
d212c3c55d
commit
9aeb0ef930
5 changed files with 14 additions and 16 deletions
|
|
@ -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]*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue