summaryrefslogtreecommitdiffstats
path: root/Objects
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 /Objects
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 'Objects')
-rw-r--r--Objects/clinic/listobject.c.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Objects/clinic/listobject.c.h b/Objects/clinic/listobject.c.h
index 57f0a48..ed137c9 100644
--- a/Objects/clinic/listobject.c.h
+++ b/Objects/clinic/listobject.c.h
@@ -314,7 +314,7 @@ list___init__(PyObject *self, PyObject *args, PyObject *kwargs)
int return_value = -1;
PyObject *iterable = NULL;
- if ((Py_TYPE(self) == &PyList_Type) &&
+ if (Py_IS_TYPE(self, &PyList_Type) &&
!_PyArg_NoKeywords("list", kwargs)) {
goto exit;
}
@@ -367,4 +367,4 @@ list___reversed__(PyListObject *self, PyObject *Py_UNUSED(ignored))
{
return list___reversed___impl(self);
}
-/*[clinic end generated code: output=73718c0c33798c62 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=1ff61490c091d165 input=a9049054013a1b77]*/