summaryrefslogtreecommitdiffstats
path: root/Modules/_io
diff options
context:
space:
mode:
authorDong-hee Na <donghee.na92@gmail.com>2020-02-14 07:50:19 (GMT)
committerGitHub <noreply@github.com>2020-02-14 07:50:19 (GMT)
commit9aeb0ef9309384099e2f23bcee2240fbc096568e (patch)
tree38b619f23a9ef0e5bb08231cd5f74683d76876b5 /Modules/_io
parentd212c3c55d414203b0579e000d9f340f8cd11be7 (diff)
downloadcpython-9aeb0ef9309384099e2f23bcee2240fbc096568e.zip
cpython-9aeb0ef9309384099e2f23bcee2240fbc096568e.tar.gz
cpython-9aeb0ef9309384099e2f23bcee2240fbc096568e.tar.bz2
bpo-39573: Update clinic to use Py_IS_TYPE() function (GH-18507)
Diffstat (limited to 'Modules/_io')
-rw-r--r--Modules/_io/clinic/bufferedio.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Modules/_io/clinic/bufferedio.c.h b/Modules/_io/clinic/bufferedio.c.h
index 72841fc..56d6332 100644
--- a/Modules/_io/clinic/bufferedio.c.h
+++ b/Modules/_io/clinic/bufferedio.c.h
@@ -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]*/