~jderose/ubuntu/precise/dbus-python/oneiric-backport

« back to all changes in this revision

Viewing changes to _dbus_bindings/pending-call.c

  • Committer: Package Import Robot
  • Author(s): Barry Warsaw
  • Date: 2012-01-12 14:47:33 UTC
  • Revision ID: package-import@ubuntu.com-20120112144733-xtfbmgw30h0j40d2
Tags: 0.84.0-2ubuntu1
* debian/patches:
  - since-0.84.0.patch: Upstream unreleased changes from git tag
    dbus-python-0.84.0 to HEAD.  This is a precursor to the following.
  - python3-support.patch: Upstream unreleased changes from git
    `python3` branch for supporting Python 3. (LP: #893091)
* debian/rules: Enable the test suite.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
 
35
35
static inline int PendingCall_Check (PyObject *o)
36
36
{
37
 
    return (o->ob_type == &PendingCallType)
 
37
    return (Py_TYPE(o) == &PendingCallType)
38
38
            || PyObject_IsInstance(o, (PyObject *)&PendingCallType);
39
39
}
40
40
 
233
233
};
234
234
 
235
235
static PyTypeObject PendingCallType = {
236
 
    PyObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type))
237
 
    0,
 
236
    PyVarObject_HEAD_INIT(DEFERRED_ADDRESS(&PyType_Type), 0)
238
237
    "dbus.lowlevel.PendingCall",
239
238
    sizeof(PendingCall),
240
239
    0,