From e335c532478e606d6b7a75acbb0a2fa09eaffd92 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 10 Mar 2006 14:01:57 +0000 Subject: [PATCH] nicer code --- src/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialogs.py b/src/dialogs.py index ad8224285..c921535e4 100644 --- a/src/dialogs.py +++ b/src/dialogs.py @@ -1391,7 +1391,7 @@ class InvitationReceivedDialog: label_text = '%s' % pritext - if comment is not None and comment != '': # only if not None and not '' + if comment: # only if not None and not '' sectext = _('Comment: %s') % comment label_text += '\n\n%s' % sectext