diff options
author | Michael Stone <michael@laptop.org> | 2011-01-21 20:32:06 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-pgp@silbe.org> | 2011-02-05 15:25:17 (GMT) |
commit | 1eb4c7756fbe10a3a77636f7c720ffa200a9a64e (patch) | |
tree | 4f1114080df3e80babeceef22059e10d772fd353 | |
parent | 7b5e3aabd2c7ffb61de94ec14c13350ab770a7bc (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>
[rebased on mainline/master]
Signed-off-by: Sascha Silbe <silbe@activitycentral.com>
Reviewed-By: Sascha Silbe <silbe@activitycentral.com>
Reviewed-by: Aleksey Lim <alsroot@member.fsf.org>
-rwxr-xr-x | extensions/cpsection/updater/model.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extensions/cpsection/updater/model.py b/extensions/cpsection/updater/model.py index 77cc873..57d6ace 100755 --- a/extensions/cpsection/updater/model.py +++ b/extensions/cpsection/updater/model.py @@ -65,8 +65,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): |