From 03bb57c8c2a47a08e19b20975622ebb2ef2b81c6 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 11 Jan 2016 22:52:33 -0500 Subject: Several optimizations: * Use `yield from` wherever appropriate. * Use SA's .one_or_none() where appropriate. - Fix a bug in MailingList.pass_extensions. - Use ValueError in other places for consistency. - Remove unreached/nonsense code. - Simplify the SubscriptionService.find_member() and .find_members() implementations. - Boost coverage. --- src/mailman/testing/helpers.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mailman/testing/helpers.py') diff --git a/src/mailman/testing/helpers.py b/src/mailman/testing/helpers.py index ea940dbcf..fa16c1f7f 100644 --- a/src/mailman/testing/helpers.py +++ b/src/mailman/testing/helpers.py @@ -220,8 +220,7 @@ class TestableMaster(Master): @property def runner_pids(self): """The pids of all the child runner processes.""" - for pid in self._started_kids: - yield pid + yield from self._started_kids -- cgit v1.2.3-70-g09d2