diff options
author | Dong-hee Na <donghee.na92@gmail.com> | 2020-02-14 07:50:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-14 07:50:19 (GMT) |
commit | 9aeb0ef9309384099e2f23bcee2240fbc096568e (patch) | |
tree | 38b619f23a9ef0e5bb08231cd5f74683d76876b5 /Objects | |
parent | d212c3c55d414203b0579e000d9f340f8cd11be7 (diff) | |
download | cpython-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.h | 4 |
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]*/ |