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/gui/gui_helper.py | |
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/gui/gui_helper.py | 4 |
1 files changed, 1 insertions, 3 deletions
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)) |