don't require python2.5

This commit is contained in:
Yann Leboulanger 2008-07-29 07:28:07 +00:00
parent 54422608ff
commit bdcce03d5d
1 changed files with 6 additions and 4 deletions

View File

@ -1521,14 +1521,16 @@ class ChatControl(ChatControlBase):
label_text = '<span %s>%s</span><span %s>%s %s</span>' \ label_text = '<span %s>%s</span><span %s>%s %s</span>' \
% (font_attrs, name, font_attrs_small, % (font_attrs, name, font_attrs_small,
acct_info, chatstate) acct_info, chatstate)
label_tooltip = '%s%s %s' % (name, ' ' + acct_info \ if acct_info:
if acct_info else '', chatstate) acct_info = ' ' + acct_info
label_tooltip = '%s%s %s' % (name, acct_info, chatstate)
else: else:
# weight="heavy" size="x-large" # weight="heavy" size="x-large"
label_text = '<span %s>%s</span><span %s>%s</span>' % \ label_text = '<span %s>%s</span><span %s>%s</span>' % \
(font_attrs, name, font_attrs_small, acct_info) (font_attrs, name, font_attrs_small, acct_info)
label_tooltip = '%s%s' % (name, ' ' + acct_info \ if acct_info:
if acct_info else '') acct_info = ' ' + acct_info
label_tooltip = '%s%s' % (name, acct_info)
if status_escaped: if status_escaped:
if gajim.HAVE_PYSEXY: if gajim.HAVE_PYSEXY: