summaryrefslogtreecommitdiff
path: root/Include/traceback.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/traceback.h')
-rw-r--r--Include/traceback.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/traceback.h b/Include/traceback.h
index 6501600c0c..4c7b8cc3e5 100644
--- a/Include/traceback.h
+++ b/Include/traceback.h
@@ -22,7 +22,7 @@ PyAPI_FUNC(int) PyTraceBack_Print(PyObject *, PyObject *);
/* Reveal traceback type so we can typecheck traceback objects */
PyAPI_DATA(PyTypeObject) PyTraceBack_Type;
-#define PyTraceBack_Check(v) ((v)->ob_type == &PyTraceBack_Type)
+#define PyTraceBack_Check(v) (Py_Type(v) == &PyTraceBack_Type)
#ifdef __cplusplus
}