diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-12-13 11:38:48 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2011-12-13 11:38:48 +0000 |
commit | ebd44a420264da0031b715f7f08a0b347a81dd30 (patch) | |
tree | 0057af95b776a326ccbb34d5e5864be1138097b8 /_dbus_bindings/message-get-args.c | |
parent | dc1c98f05d29c5b7464d7ac34ee900066f261a86 (diff) |
Use Py_TYPE() rather than thing->ob_type, for Python 3 portability
Based on part of a patch from Barry Warsaw.
Signed-off-by: Simon McVittie <simon.mcvittie@collabora.co.uk>
Diffstat (limited to '_dbus_bindings/message-get-args.c')
-rw-r--r-- | _dbus_bindings/message-get-args.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/_dbus_bindings/message-get-args.c b/_dbus_bindings/message-get-args.c index 032d530..fef2a45 100644 --- a/_dbus_bindings/message-get-args.c +++ b/_dbus_bindings/message-get-args.c @@ -94,7 +94,7 @@ _message_iter_append_all_to_list(DBusMessageIter *iter, PyObject *list, #ifdef USING_DBG fprintf(stderr, "DBG/%ld: appending to list: %p == ", (long)getpid(), item); PyObject_Print(item, stderr, 0); - fprintf(stderr, " of type %p\n", item->ob_type); + fprintf(stderr, " of type %p\n", Py_TYPE(item)); #endif ret = PyList_Append(list, item); Py_CLEAR(item); |