summaryrefslogtreecommitdiffstats
path: root/Include/py_curses.h
diff options
context:
space:
mode:
authorAndy Lester <andy@petdance.com>2020-03-04 13:15:20 (GMT)
committerGitHub <noreply@github.com>2020-03-04 13:15:20 (GMT)
commitdffe4c07095e0c693e094d3c140e85a68bd8128e (patch)
tree1f58f4c2f76d6f630c5279a7b72d31bb6b4d8873 /Include/py_curses.h
parent22a9a546ff3bf2a63d77ca1e5494e758bc59132f (diff)
downloadcpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.zip
cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.gz
cpython-dffe4c07095e0c693e094d3c140e85a68bd8128e.tar.bz2
bpo-39573: Finish converting to new Py_IS_TYPE() macro (GH-18601)
Diffstat (limited to 'Include/py_curses.h')
-rw-r--r--Include/py_curses.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/Include/py_curses.h b/Include/py_curses.h
index 2702b37..b70252d 100644
--- a/Include/py_curses.h
+++ b/Include/py_curses.h
@@ -64,7 +64,7 @@ typedef struct {
char *encoding;
} PyCursesWindowObject;
-#define PyCursesWindow_Check(v) (Py_TYPE(v) == &PyCursesWindow_Type)
+#define PyCursesWindow_Check(v) Py_IS_TYPE(v, &PyCursesWindow_Type)
#define PyCurses_CAPSULE_NAME "_curses._C_API"
@@ -97,4 +97,3 @@ static const char catchall_NULL[] = "curses function returned NULL";
#endif /* !defined(Py_CURSES_H) */
-