diff options
author | Michael Stone <michael@laptop.org> | 2010-05-23 18:01:13 (GMT) |
---|---|---|
committer | Michael Stone <michael@laptop.org> | 2010-06-12 16:56:20 (GMT) |
commit | 785b899072093a981053f8a7e99da23a8d87f3fc (patch) | |
tree | 435cee6f56c4636bf22339bd5908ccd1153ebf51 | |
parent | 8f69e5a30e047761abc3b942ace44500baf643cb (diff) |
Simplify the definition of UpdateModel._bundles_to_check.
The only purposes of the list comprehension in UpdateModel.check_updates() is
to set self._bundles_to_check to a list containing the elements returned by
bundleregistry.get_registry(). This purpose can be more succinctly achieved by
means of the list() constructor.
Signed-off-by: Michael Stone <michael@laptop.org>
-rwxr-xr-x | main/extensions/cpsection/updater/model.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/main/extensions/cpsection/updater/model.py b/main/extensions/cpsection/updater/model.py index f2de65b..d523af8 100755 --- a/main/extensions/cpsection/updater/model.py +++ b/main/extensions/cpsection/updater/model.py @@ -63,8 +63,7 @@ class UpdateModel(gobject.GObject): def check_updates(self): self.updates = [] - self._bundles_to_check = \ - [bundle for bundle in bundleregistry.get_registry()] + self._bundles_to_check = list(bundleregistry.get_registry()) self._check_next_update() def _check_next_update(self): |