From 8599a46046606b3e73136cfe7a02cd38de166872 Mon Sep 17 00:00:00 2001 From: js Date: Tue, 22 Jul 2008 23:25:27 +0000 Subject: [PATCH] More coding style. (Do I always have to fix the coding style first before I can work with it? Damn, that's annoying! My terminal has a width of 80 chars, what's so hard about using the 80 chars width we have specified in the coding style?) --- src/tooltips.py | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/src/tooltips.py b/src/tooltips.py index 14363f3a0..a20394478 100644 --- a/src/tooltips.py +++ b/src/tooltips.py @@ -567,16 +567,19 @@ class RosterTooltip(NotificationAreaTooltip): self.win.add(vcard_table) def _append_pep_info(self, contact, properties): - '''Append Tune, Mood, Activity information of the specified contact + ''' + Append Tune, Mood, Activity information of the specified contact to the given property list. ''' if contact.mood.has_key('mood'): mood = contact.mood['mood'].strip() mood = gobject.markup_escape_text(mood) mood_string = _('Mood:') + ' %s' % mood - if contact.mood.has_key('text') and contact.mood['text'] != '': + if contact.mood.has_key('text') \ + and contact.mood['text'] != '': mood_text = contact.mood['text'].strip() - mood_text = gobject.markup_escape_text(mood_text) + mood_text = \ + gobject.markup_escape_text(mood_text) mood_string += ' (%s)' % mood_text properties.append((mood_string, None)) @@ -585,18 +588,22 @@ class RosterTooltip(NotificationAreaTooltip): activity = gobject.markup_escape_text(activity) activity_string = _('Activity:') + ' %s' % activity if contact.activity.has_key('subactivity'): - activity_sub = contact.activity['subactivity'].strip() - activity_sub = gobject.markup_escape_text(activity_sub) + activity_sub = \ + contact.activity['subactivity'].strip() + activity_sub = \ + gobject.markup_escape_text(activity_sub) activity_string += ' (%s)' % activity_sub else: activity_string += '' if contact.activity.has_key('text'): activity_text = contact.activity['text'].strip() - activity_text = gobject.markup_escape_text(activity_text) + activity_text = gobject.markup_escape_text( + activity_text) activity_string += ' (%s)' % activity_text properties.append((activity_string, None)) - if contact.tune.has_key('artist') or contact.tune.has_key('title'): + if contact.tune.has_key('artist') \ + or contact.tune.has_key('title'): if contact.tune.has_key('artist'): artist = contact.tune['artist'].strip() artist = gobject.markup_escape_text(artist)