summaryrefslogtreecommitdiffstats
path: root/Modules/clinic/_bz2module.c.h
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/clinic/_bz2module.c.h
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/clinic/_bz2module.c.h')
-rw-r--r--Modules/clinic/_bz2module.c.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/Modules/clinic/_bz2module.c.h b/Modules/clinic/_bz2module.c.h
index ac826bd..0eb6280 100644
--- a/Modules/clinic/_bz2module.c.h
+++ b/Modules/clinic/_bz2module.c.h
@@ -85,7 +85,7 @@ _bz2_BZ2Compressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
int return_value = -1;
int compresslevel = 9;
- if ((Py_TYPE(self) == &BZ2Compressor_Type) &&
+ if (Py_IS_TYPE(self, &BZ2Compressor_Type) &&
!_PyArg_NoKeywords("BZ2Compressor", kwargs)) {
goto exit;
}
@@ -207,11 +207,11 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
{
int return_value = -1;
- if ((Py_TYPE(self) == &BZ2Decompressor_Type) &&
+ if (Py_IS_TYPE(self, &BZ2Decompressor_Type) &&
!_PyArg_NoPositional("BZ2Decompressor", args)) {
goto exit;
}
- if ((Py_TYPE(self) == &BZ2Decompressor_Type) &&
+ if (Py_IS_TYPE(self, &BZ2Decompressor_Type) &&
!_PyArg_NoKeywords("BZ2Decompressor", kwargs)) {
goto exit;
}
@@ -220,4 +220,4 @@ _bz2_BZ2Decompressor___init__(PyObject *self, PyObject *args, PyObject *kwargs)
exit:
return return_value;
}
-/*[clinic end generated code: output=ec3d1b3652c98823 input=a9049054013a1b77]*/
+/*[clinic end generated code: output=3f3f1e788fe28ee1 input=a9049054013a1b77]*/