From bdcce03d5da15a4051e74308b62c17ccc13ebe1f Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 29 Jul 2008 07:28:07 +0000 Subject: [PATCH] don't require python2.5 --- src/chat_control.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index b97117e9e..47725a8a1 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1521,14 +1521,16 @@ class ChatControl(ChatControlBase): label_text = '%s%s %s' \ % (font_attrs, name, font_attrs_small, acct_info, chatstate) - label_tooltip = '%s%s %s' % (name, ' ' + acct_info \ - if acct_info else '', chatstate) + if acct_info: + acct_info = ' ' + acct_info + label_tooltip = '%s%s %s' % (name, acct_info, chatstate) else: # weight="heavy" size="x-large" label_text = '%s%s' % \ (font_attrs, name, font_attrs_small, acct_info) - label_tooltip = '%s%s' % (name, ' ' + acct_info \ - if acct_info else '') + if acct_info: + acct_info = ' ' + acct_info + label_tooltip = '%s%s' % (name, acct_info) if status_escaped: if gajim.HAVE_PYSEXY: