diff --git a/src/network_manager_listener.py b/src/network_manager_listener.py index b65fc20f0..9de04cfe1 100644 --- a/src/network_manager_listener.py +++ b/src/network_manager_listener.py @@ -16,9 +16,9 @@ import dbus import dbus.glib -NM_OBJ_PATH = "/org/freedesktop/NetworkManager" -NM_INTERFACE = "org.freedesktop.NetworkManager" -NM_SERVICE = "org.freedesktop.NetworkManager" +NM_OBJ_PATH = '/org/freedesktop/NetworkManager' +NM_INTERFACE = 'org.freedesktop.NetworkManager' +NM_SERVICE = 'org.freedesktop.NetworkManager' class NetworkManagerListener: def __init__(self, nm_activated_CB, nm_deactivated_CB): @@ -28,5 +28,7 @@ class NetworkManagerListener: self._devices = self._nm_iface.getDevices() - self._nm_iface.connect_to_signal('DeviceNowActive', nm_activated_CB) - self._nm_iface.connect_to_signal('DeviceNoLongerActive', nm_deactivated_CB) + self._nm_iface.connect_to_signal('DeviceNowActive', + nm_activated_CB) + self._nm_iface.connect_to_signal('DeviceNoLongerActive', + nm_deactivated_CB) diff --git a/src/roster_window.py b/src/roster_window.py index 581ff8f3d..39b69cbcf 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -4178,7 +4178,7 @@ _('If "%s" accepts this request you will know his or her status.') % jid) nm_listener = NetworkManagerListener(self.nm_activated_CB, self.nm_deactivated_CB) except: - print >> sys.stderr, _('Network manager support not available') + print >> sys.stderr, _('Network Manager support not available') def nm_activated_CB(self, dev, net): for acc in gajim.contacts.get_accounts():