mirror of
https://github.com/python/cpython
synced 2026-09-28 06:28:21 +03: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
|
|
@ -83,7 +83,7 @@ typedef struct {
|
|||
} PyCursesPanelObject;
|
||||
|
||||
#define PyCursesPanel_Check(v) \
|
||||
(Py_TYPE(v) == _curses_panelstate_global->PyCursesPanel_Type)
|
||||
Py_IS_TYPE(v, _curses_panelstate_global->PyCursesPanel_Type)
|
||||
|
||||
/* Some helper functions. The problem is that there's always a window
|
||||
associated with a panel. To ensure that Python's GC doesn't pull
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue