From a52663d0cd22d6a33ded9e541a151ddf4b227605 Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Thu, 17 Dec 2009 16:21:37 +0000 Subject: [PATCH] tweak replacing for-loop with call to map() function svn: r13838 --- src/gui/views/listview.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gui/views/listview.py b/src/gui/views/listview.py index b3afef0e4..56905ba3e 100644 --- a/src/gui/views/listview.py +++ b/src/gui/views/listview.py @@ -663,8 +663,7 @@ class ListView(NavigationView): """ if self.active: cput = time.clock() - for handle in handle_list: - self.model.delete_row_by_handle(handle) + map(self.model.delete_row_by_handle, handle_list) _LOG.debug(' ' + self.__class__.__name__ + ' row_delete ' + str(time.clock() - cput) + ' sec') self.uistate.show_filter_results(self.dbstate,