summaryrefslogtreecommitdiff
path: root/portato/gui/gtk/windows.py
diff options
context:
space:
mode:
authorNecoro <>2007-09-18 06:34:41 +0000
committerNecoro <>2007-09-18 06:34:41 +0000
commit4fa82cee8ca58d83902b351faa2742fd174c6fe5 (patch)
tree8869a1e51ecd1efe36c124d5907479af3bf20e8f /portato/gui/gtk/windows.py
parente209142784ab7636fed791f641fc432acfc3dab5 (diff)
downloadportato-4fa82cee8ca58d83902b351faa2742fd174c6fe5.tar.gz
portato-4fa82cee8ca58d83902b351faa2742fd174c6fe5.tar.bz2
portato-4fa82cee8ca58d83902b351faa2742fd174c6fe5.zip
replaced some lists by generators to save memory
Diffstat (limited to 'portato/gui/gtk/windows.py')
-rw-r--r--portato/gui/gtk/windows.py4
1 files changed, 2 insertions, 2 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: