summaryrefslogtreecommitdiff
path: root/dbus/service.py
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2007-05-04 17:09:57 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2007-05-04 17:09:57 +0100
commited2ace3161337789924e03f559603dccfa40c56e (patch)
tree37a8834af1a486993e902e30fd0968cc55db2a42 /dbus/service.py
parent774e133d2cdc1a0fda2bd14d2354a9da2deece88 (diff)
downloaddbus-python-ed2ace3161337789924e03f559603dccfa40c56e.tar.gz
dbus/service.py: Don't use deprecated get_connection() in Object constructor.
The Connection and BusConnection base classes don't have it, and we can now export Objects on a plain Connection.
Diffstat (limited to 'dbus/service.py')
-rw-r--r--dbus/service.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/dbus/service.py b/dbus/service.py
index 551bd84..7326df5 100644
--- a/dbus/service.py
+++ b/dbus/service.py
@@ -415,9 +415,7 @@ class Object(Interface):
self._object_path = object_path
self._name = bus_name
- self._bus = conn
-
- self._connection = self._bus.get_connection()
+ self._connection = conn
self._connection._register_object_path(object_path, self._message_cb, self._unregister_cb)