From 54422608ffb4ae2d9b02d26605be6611c988b460 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 29 Jul 2008 07:23:56 +0000 Subject: [PATCH] don't require python2.5 --- src/chat_control.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 1ed775e05..b97117e9e 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -1326,9 +1326,12 @@ class ChatControl(ChatControlBase): source = gobject.markup_escape_text(source) if artist or title: - artist = artist if artist else _('Unknown Artist') - title = title if title else _('Unknown Title') - source = source if source else _('Unknown Source') + if not artist: + artist = _('Unknown Artist') + if not title: + title = _('Unknown Title') + if not source: + source = _('Unknown Source') if HAVE_MARKUP_TOOLTIPS: self._tune_image.set_tooltip_markup(