summaryrefslogtreecommitdiffstats
path: root/Include/unicodeobject.h
diff options
context:
space:
mode:
Diffstat (limited to 'Include/unicodeobject.h')
-rw-r--r--Include/unicodeobject.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Include/unicodeobject.h b/Include/unicodeobject.h
index 025c8b7..dbeb883 100644
--- a/Include/unicodeobject.h
+++ b/Include/unicodeobject.h
@@ -372,7 +372,7 @@ typedef struct {
extern DL_IMPORT(PyTypeObject) PyUnicode_Type;
-#define PyUnicode_Check(op) (((op)->ob_type == &PyUnicode_Type))
+#define PyUnicode_Check(op) PyObject_TypeCheck(op, &PyUnicode_Type)
/* Fast access macros */
#define PyUnicode_GET_SIZE(op) \