From 85c307d174621e13681b03f437fb9d0ccba4926f Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Wed, 16 Dec 2009 17:51:53 +0000 Subject: [PATCH] Simplification using list comprehension svn: r13826 --- src/gui/selectors/baseselector.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/gui/selectors/baseselector.py b/src/gui/selectors/baseselector.py index c069a3b16..3270247fe 100644 --- a/src/gui/selectors/baseselector.py +++ b/src/gui/selectors/baseselector.py @@ -230,9 +230,10 @@ class BaseSelector(ManagedWindow.ManagedWindow): """ Builds the default filters and add them to the filter bar. """ - cols = [] - for pair in [pair for pair in self.column_order() if pair[0]]: - cols.append((pair[3], pair[1])) + cols = [(pair[3], pair[1]) + for pair in self.column_order() + if pair[0] + ] self.search_bar.setup_filter(cols) def build_tree(self):