Show
Ignore:
Timestamp:
04/29/08 12:02:04 (4 months ago)
Author:
Ronny Pfannschmidt <Ronny.Pfannschmidt@…>
Message:

some code cleanups

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pida/services/optionsmanager/optionsmanager.py

    r1144 r1145  
    7474        self._services = [] 
    7575        for svc in self.svc.boss.get_services(): 
    76             if len(svc.options): 
     76            if svc.options: 
    7777                self._services.append(svc) 
    7878                self._services_display.append( 
     
    109109        labelsizer = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL) 
    110110        widgetsizer = gtk.SizeGroup(gtk.SIZE_GROUP_HORIZONTAL) 
    111         options = list(svc.options.iter_options()) 
    112         options.sort() 
    113         for opt in options: 
     111 
     112        for opt in sorted(svc.options): 
    114113            vb = gtk.VBox(spacing=2) 
    115114            vb.set_border_width(6) 
     
    192191 
    193192    def plugin_changed(self, plugin): 
    194         if len(plugin.options): 
     193        if plugin.options: 
    195194            self.svc.refresh_view() 
    196195