diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-07-14 16:16:22 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-07-14 16:16:22 +0100 |
commit | 54a64a6571a6de18b87177ff1410e5d57f574463 (patch) | |
tree | d46d198bfb96da7df06859d0989c6e76e72ec0e1 | |
parent | 05c19f23c63246322e4c9dfed2af47aaf77f7619 (diff) | |
download | dbus-python-54a64a6571a6de18b87177ff1410e5d57f574463.tar.gz |
DBusPyServer initialization: remove some debugging printfs
-rw-r--r-- | _dbus_bindings/server.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/_dbus_bindings/server.c b/_dbus_bindings/server.c index fbe1f4c..33dbaae 100644 --- a/_dbus_bindings/server.c +++ b/_dbus_bindings/server.c @@ -527,24 +527,22 @@ dbus_bool_t dbus_py_init_server_types(void) { /* Get a slot to store our weakref on DBus Server */ -printf("%s:%d\n", __func__, __LINE__); _server_python_slot = -1; if (!dbus_server_allocate_data_slot(&_server_python_slot)) return FALSE; -printf("%s:%d\n", __func__, __LINE__); + if (PyType_Ready(&DBusPyServer_Type) < 0) return FALSE; -printf("%s:%d\n", __func__, __LINE__); + return TRUE; } dbus_bool_t dbus_py_insert_server_types(PyObject *this_module) { -printf("%s:%d\n", __func__, __LINE__); if (PyModule_AddObject(this_module, "Server", (PyObject *)&DBusPyServer_Type) < 0) return FALSE; -printf("%s:%d\n", __func__, __LINE__); + return TRUE; } |