# HG changeset patch # User Goffi # Date 1548530688 -3600 # Node ID 112ba3295f8f06d4bb159b5123270cb49d73fe3a # Parent fdda914a298b1d73c31b7ea1766151bd0d61190b core (utils): use generator when checking continue_tests in FilterBehavior: using a list was doing all the tests when the first one could fail, resulting in an exception in FileSharing. diff -r fdda914a298b -r 112ba3295f8f cagou/core/utils.py --- a/cagou/core/utils.py Sat Jan 26 20:24:48 2019 +0100 +++ b/cagou/core/utils.py Sat Jan 26 20:24:48 2019 +0100 @@ -56,7 +56,7 @@ filtering = len(text)>len(self._filter_last) self._filter_last = text for child in self.layout.children: - if continue_tests is not None and any([t(child) for t in continue_tests]): + if continue_tests is not None and any((t(child) for t in continue_tests)): continue if text in get_child_text(child).lower(): self._filter_anim.cancel(child)