mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)
This commit is contained in:
parent
a7847590f0
commit
1b55b65638
33 changed files with 56 additions and 56 deletions
|
@ -413,7 +413,7 @@ SHA256Type_copy_impl(SHAobject *self)
|
|||
{
|
||||
SHAobject *newobj;
|
||||
|
||||
if (Py_TYPE(self) == &SHA256type) {
|
||||
if (Py_IS_TYPE(self, &SHA256type)) {
|
||||
if ( (newobj = newSHA256object())==NULL)
|
||||
return NULL;
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue