From a530b92290eda7d8b15e5610f5da616b2e84f175 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 2 Sep 2008 07:13:24 +0000 Subject: [PATCH] coding standards --- src/roster_window.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 5a3cb816d..ce4dd6ccf 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -334,8 +334,8 @@ class RosterWindow: self.starting = False - def _add_entity(self, contact, account, groups = None, - big_brother_contact = None, big_brother_account = None): + def _add_entity(self, contact, account, groups=None, + big_brother_contact=None, big_brother_account=None): '''Add the given contact to roster data model. Contact is added regardless if he is already in roster or not. @@ -357,8 +357,7 @@ class RosterWindow: parent_iters = self._get_contact_iter( big_brother_contact.jid, big_brother_account, big_brother_contact, self.model) - assert len(parent_iters) > 0,\ - 'Big brother is not yet in roster!' + assert len(parent_iters) > 0, 'Big brother is not yet in roster!' # Do not confuse get_contact_iter: Sync groups of family members contact.groups = big_brother_contact.get_shown_groups()[:]