From 288a20f62d01c5205eab71a560ee46d2961cec0b Mon Sep 17 00:00:00 2001 From: Gerald Britton Date: Thu, 26 Nov 2009 19:53:52 +0000 Subject: [PATCH] Small simplifications svn: r13676 --- src/gen/proxy/filter.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/gen/proxy/filter.py b/src/gen/proxy/filter.py index bd54b029f..d444ba2d4 100644 --- a/src/gen/proxy/filter.py +++ b/src/gen/proxy/filter.py @@ -48,19 +48,19 @@ class FilterProxyDb(ProxyDbBase): ProxyDbBase.__init__(self, db) self.person_filter = person_filter if person_filter: - self.plist = set(h for h in person_filter.apply( + self.plist = set(person_filter.apply( self.db, self.db.iter_person_handles())) else: self.plist = set(self.db.iter_person_handles()) if event_filter: - self.elist = set(h for h in event_filter.apply( + self.elist = set(event_filter.apply( self.db, self.db.iter_event_handles())) else: self.elist = set(self.db.iter_event_handles()) if note_filter: - self.nlist = set(h for h in note_filter.apply( + self.nlist = set(note_filter.apply( self.db, self.db.iter_note_handles())) else: self.nlist = set(self.db.iter_note_handles()) @@ -68,8 +68,7 @@ class FilterProxyDb(ProxyDbBase): self.flist = set() for handle in self.plist: person = self.db.get_person_from_handle(handle) - for handle in person.get_family_handle_list(): - self.flist.add(handle) + self.flist.update(person.get_family_handle_list()) def get_person_from_handle(self, handle): """