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>' \
% (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 = '<span %s>%s</span><span %s>%s</span>' % \
(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: