Changeset 9995

Show
Ignore:
Timestamp:
07/23/08 01:25:27 (4 months ago)
Author:
js
Message:

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?)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/tooltips.py

    r9990 r9995  
    568568 
    569569        def _append_pep_info(self, contact, properties): 
    570                 '''Append Tune, Mood, Activity information of the specified contact 
     570                ''' 
     571                Append Tune, Mood, Activity information of the specified contact 
    571572                to the given property list. 
    572573                ''' 
     
    575576                        mood = gobject.markup_escape_text(mood) 
    576577                        mood_string = _('Mood:') + ' <b>%s</b>' % mood 
    577                         if contact.mood.has_key('text') and contact.mood['text'] != '': 
     578                        if contact.mood.has_key('text') \ 
     579                        and contact.mood['text'] != '': 
    578580                                mood_text = contact.mood['text'].strip() 
    579                                 mood_text = gobject.markup_escape_text(mood_text) 
     581                                mood_text = \ 
     582                                        gobject.markup_escape_text(mood_text) 
    580583                                mood_string += ' (%s)' % mood_text 
    581584                        properties.append((mood_string, None)) 
     
    586589                        activity_string = _('Activity:') + ' <b>%s' % activity 
    587590                        if contact.activity.has_key('subactivity'): 
    588                                 activity_sub = contact.activity['subactivity'].strip() 
    589                                 activity_sub = gobject.markup_escape_text(activity_sub) 
     591                                activity_sub = \ 
     592                                        contact.activity['subactivity'].strip() 
     593                                activity_sub = \ 
     594                                        gobject.markup_escape_text(activity_sub) 
    590595                                activity_string += ' (%s)</b>' % activity_sub 
    591596                        else: 
     
    593598                        if contact.activity.has_key('text'): 
    594599                                activity_text = contact.activity['text'].strip() 
    595                                 activity_text = gobject.markup_escape_text(activity_text) 
     600                                activity_text = gobject.markup_escape_text( 
     601                                        activity_text) 
    596602                                activity_string += ' (%s)' % activity_text 
    597603                        properties.append((activity_string, None)) 
    598604 
    599                 if contact.tune.has_key('artist') or contact.tune.has_key('title'): 
     605                if contact.tune.has_key('artist') \ 
     606                or contact.tune.has_key('title'): 
    600607                        if contact.tune.has_key('artist'): 
    601608                                artist = contact.tune['artist'].strip()