diff options
author | Necoro <> | 2007-09-18 06:34:41 +0000 |
---|---|---|
committer | Necoro <> | 2007-09-18 06:34:41 +0000 |
commit | 4fa82cee8ca58d83902b351faa2742fd174c6fe5 (patch) | |
tree | 8869a1e51ecd1efe36c124d5907479af3bf20e8f /portato/backend | |
parent | e209142784ab7636fed791f641fc432acfc3dab5 (diff) | |
download | portato-4fa82cee8ca58d83902b351faa2742fd174c6fe5.tar.gz portato-4fa82cee8ca58d83902b351faa2742fd174c6fe5.tar.bz2 portato-4fa82cee8ca58d83902b351faa2742fd174c6fe5.zip |
replaced some lists by generators to save memory
Diffstat (limited to '')
-rw-r--r-- | portato/backend/portage/system.py | 4 |
1 files changed, 2 insertions, 2 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) |