From b2c1506d4dfff584f94c81be2fc4893184567a6c Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 9 Sep 2008 16:44:24 +0000 Subject: [PATCH] don't depend on python2.5 for now. Fixes #4306 --- src/roster_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/roster_window.py b/src/roster_window.py index 4efeefa6d..258068bed 100644 --- a/src/roster_window.py +++ b/src/roster_window.py @@ -2031,8 +2031,13 @@ class RosterWindow: del gajim.interface.status_sent_to_users[account][contact.jid] # Delete pep if needed - keep_pep = any(c.show not in ('error', 'offline') for c in - contact_instances) + #FIXME: py2.5only +# keep_pep = any(c.show not in ('error', 'offline') for c in +# contact_instances) + keep_pep = False + for c in contact_instances: + if c.show not in ('error', 'offline'): + keep_pep = True if not keep_pep and contact.jid != gajim.get_jid_from_account(account) \ and not contact.is_groupchat(): pep.delete_pep(contact.jid, account)