summaryrefslogtreecommitdiff
path: root/portato
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--portato/backend/portage/system.py4
-rw-r--r--portato/gui/gtk/windows.py4
-rw-r--r--portato/gui/gui_helper.py4
3 files changed, 5 insertions, 7 deletions
diff --git a/portato/backend/portage/system.py b/portato/backend/portage/system.py
index eeccb9c..035425b 100644
--- a/portato/backend/portage/system.py
+++ b/portato/backend/portage/system.py
@@ -247,12 +247,12 @@ class PortageSystem (SystemInterface):
return t
def find_all_world_packages (self, name = None):
- world = filter(self.find_lambda(name), [x.get_cpv() for x in self.find_world_packages()[0]])
+ world = filter(self.find_lambda(name), (x.get_cpv() for x in self.find_world_packages()[0]))
world = unique_array(world)
return self.geneticize_list(world)
def find_all_system_packages (self, name = None):
- sys = filter(self.find_lambda(name), [x.get_cpv() for x in self.find_system_packages()[0]])
+ sys = filter(self.find_lambda(name), (x.get_cpv() for x in self.find_system_packages()[0]))
sys = unique_array(sys)
return self.geneticize_list(sys)
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))
pendencies to top package classRené 'Necoro' Neumann4-50/+85 2008-03-11improved performance by caching the use_expand queriesRené 'Necoro' Neumann1-5/+14 2008-03-11use catapult varsRené 'Necoro' Neumann2-4/+6 2008-03-11Updated catapult stuffRené 'Necoro' Neumann5-56/+108 2008-03-10Generate correct KeyNotFoundExceptionRené 'Necoro' Neumann1-2/+2 2008-03-09Small changesRené 'Necoro' Neumann3-1/+4 2008-03-07Better session handlingRené 'Necoro' Neumann1-5/+54 2008-03-07Small changesRené 'Necoro' Neumann1-1/+4 2008-03-07Updated shm module to 1.2René 'Necoro' Neumann1-8/+21 2008-03-07Update TODORené 'Necoro' Neumann1-3/+1 2008-03-07hmm ... yesRené 'Necoro' Neumann1-1/+1 2008-03-06Used better exceptions for configuration parserRené 'Necoro' Neumann1-26/+114 2008-03-06Update translationRené 'Necoro' Neumann2-349/+393 2008-03-06Update createpot.shRené 'Necoro' Neumann1-3/+2 2008-03-06Use 'nofork' instead of 'nolistener'René 'Necoro' Neumann1-3/+3 2008-03-05Install glade files into template dir and not data dirRené 'Necoro' Neumann2-2/+1 2008-03-05Added dependency listRené 'Necoro' Neumann3-117/+237