Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/collaboration/connection_watcher.py
diff options
context:
space:
mode:
authorWalter Bender <walter@sugarlabs.org>2013-05-22 18:52:20 (GMT)
committer Walter Bender <walter@sugarlabs.org>2013-05-22 18:52:20 (GMT)
commit6b3d47503f294128cb3289f4472669110afd4293 (patch)
treeb1aac937ef6ea448201ebd39179837c65611bc63 /collaboration/connection_watcher.py
parent237eae4e5ff586b9d3b87899520e2ba6bb71fb66 (diff)
pep8 and pyflakes cleanup
Diffstat (limited to 'collaboration/connection_watcher.py')
-rw-r--r--collaboration/connection_watcher.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/collaboration/connection_watcher.py b/collaboration/connection_watcher.py
index 96af1cf..1ef503a 100644
--- a/collaboration/connection_watcher.py
+++ b/collaboration/connection_watcher.py
@@ -25,8 +25,8 @@ import gobject
from telepathy.client import Connection
from telepathy.interfaces import CONN_INTERFACE
-from telepathy.constants import CONNECTION_STATUS_CONNECTED, \
- CONNECTION_STATUS_DISCONNECTED
+from telepathy.constants import (CONNECTION_STATUS_CONNECTED,
+ CONNECTION_STATUS_DISCONNECTED)
_instance = None
@@ -35,9 +35,9 @@ _instance = None
class ConnectionWatcher(gobject.GObject):
__gsignals__ = {
'connection-added': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
- ([gobject.TYPE_PYOBJECT])),
+ ([gobject.TYPE_PYOBJECT])),
'connection-removed': (gobject.SIGNAL_RUN_FIRST, gobject.TYPE_NONE,
- ([gobject.TYPE_PYOBJECT])),
+ ([gobject.TYPE_PYOBJECT])),
}
def __init__(self, bus=None):
@@ -51,8 +51,10 @@ class ConnectionWatcher(gobject.GObject):
# D-Bus path -> Connection
self._connections = {}
- self.bus.add_signal_receiver(self._status_changed_cb,
- dbus_interface=CONN_INTERFACE, signal_name='StatusChanged',
+ self.bus.add_signal_receiver(
+ self._status_changed_cb,
+ dbus_interface=CONN_INTERFACE,
+ signal_name='StatusChanged',
path_keyword='path')
for conn in Connection.get_connections(bus):