diff options
author | Simon McVittie <smcv@debian.org> | 2010-02-18 15:07:39 +0000 |
---|---|---|
committer | Simon McVittie <smcv@debian.org> | 2010-02-18 15:07:39 +0000 |
commit | 50f0a326c63f35b2cafe8cb9e9082bc2c4a3fa1b (patch) | |
tree | 5fb87699c055ee90a4d547774fa8b53619ff47d2 | |
parent | abdf6021b21883beb51d92862caafc127d3c25ec (diff) | |
download | dbus-python-50f0a326c63f35b2cafe8cb9e9082bc2c4a3fa1b.tar.gz |
fd.o#21172: avoid DeprecationWarning with Python 2.6
-rw-r--r-- | _dbus_bindings/conn.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/_dbus_bindings/conn.c b/_dbus_bindings/conn.c index c30f167..5a8ec0b 100644 --- a/_dbus_bindings/conn.c +++ b/_dbus_bindings/conn.c @@ -341,6 +341,13 @@ Connection_tp_new(PyTypeObject *cls, PyObject *args, PyObject *kwargs) return self; } +/* Post-construction: nothing to do (but don't chain up to object.__init__, + * which takes no arguments and does nothing) */ +static int +Connection_tp_init(PyTypeObject *cls, PyObject *args, PyObject *kwargs) +{ +} + /* Destructor */ static void Connection_tp_dealloc(Connection *self) { @@ -432,7 +439,7 @@ PyTypeObject DBusPyConnection_Type = { 0, /*tp_descr_get*/ 0, /*tp_descr_set*/ 0, /*tp_dictoffset*/ - 0, /*tp_init*/ + Connection_tp_init, /*tp_init*/ 0, /*tp_alloc*/ Connection_tp_new, /*tp_new*/ 0, /*tp_free*/ |