From 4ebee785fff840694651597f57fe13dc2793e1c7 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 29 Jul 2008 07:11:39 +0000 Subject: [PATCH] don't require python2.5 --- src/common/pep.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/pep.py b/src/common/pep.py index ee19a86f9..3511f1566 100644 --- a/src/common/pep.py +++ b/src/common/pep.py @@ -375,8 +375,11 @@ def user_send_mood(account, mood, message = ''): return item = xmpp.Node('mood', {'xmlns': xmpp.NS_MOOD}) if mood != '': - item.addChild(mood, namespace = 'http://gajim.org/moods' \ - if mood in GAJIM_MOODS else None) + if mood in GAJIM_MOODS: + ns = 'http://gajim.org/moods' + else: + ns = None + item.addChild(mood, namespace = ns) if message != '': i = item.addChild('text') i.addData(message)