From 6b3d47503f294128cb3289f4472669110afd4293 Mon Sep 17 00:00:00 2001 From: Walter Bender Date: Wed, 22 May 2013 18:52:20 +0000 Subject: pep8 and pyflakes cleanup --- (limited to 'collaboration/connection_watcher.py') 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): -- cgit v0.9.1