mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
This commit is contained in:
parent
22a9a546ff
commit
dffe4c0709
23 changed files with 56 additions and 57 deletions
|
|
@ -844,7 +844,7 @@ _ldict(localobject *self)
|
|||
}
|
||||
}
|
||||
else {
|
||||
assert(Py_TYPE(dummy) == &localdummytype);
|
||||
assert(Py_IS_TYPE(dummy, &localdummytype));
|
||||
ldict = ((localdummyobject *) dummy)->localdict;
|
||||
}
|
||||
|
||||
|
|
@ -1209,7 +1209,7 @@ release_sentinel(void *wr_raw)
|
|||
PyObject *obj = PyWeakref_GET_OBJECT(wr);
|
||||
lockobject *lock;
|
||||
if (obj != Py_None) {
|
||||
assert(Py_TYPE(obj) == &Locktype);
|
||||
assert(Py_IS_TYPE(obj, &Locktype));
|
||||
lock = (lockobject *) obj;
|
||||
if (lock->locked) {
|
||||
PyThread_release_lock(lock->lock_lock);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue