diff options
Diffstat (limited to 'portato/gui')
-rw-r--r-- | portato/gui/gtk/windows.py | 4 | ||||
-rw-r--r-- | portato/gui/gui_helper.py | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/portato/gui/gtk/windows.py b/portato/gui/gtk/windows.py index 562624c..434381f 100644 --- a/portato/gui/gtk/windows.py +++ b/portato/gui/gtk/windows.py @@ -82,7 +82,7 @@ class PluginWindow (AbstractDialog): col = gtk.TreeViewColumn(_("Enabled"), bcell, active = 2) view.append_column(col) - for p in [("<b>"+p.name+"</b>", p.author, p.is_enabled()) for p in plugins]: + for p in (("<b>"+p.name+"</b>", p.author, p.is_enabled()) for p in plugins): self.store.append(p) self.window.show_all() @@ -580,7 +580,7 @@ class PackageTable: store = self.versList.get_model() # append versions - for vers, inst in [(x.get_version(), x.is_installed()) for x in self.packages]: + for vers, inst in ((x.get_version(), x.is_installed()) for x in self.packages): if inst: icon = self.main.instPixbuf else: diff --git a/portato/gui/gui_helper.py b/portato/gui/gui_helper.py index e1c9ce9..d1c53d0 100644 --- a/portato/gui/gui_helper.py +++ b/portato/gui/gui_helper.py @@ -201,9 +201,7 @@ class Database: # cycle through packages for p in packages: - list = p.split("/") - cat = list[0] - pkg = list[1] + cat, pkg = p.split("/") if not cat in self._db: self._db[cat] = [] self._db[cat].append((pkg, p in installed)) |