Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/
Date: Sat, 29 Oct 2011 03:10:44
Message-Id: f935a5e7eb8e96adceaea78c29874e83f6c9ec15.zmedico@gentoo
1 commit: f935a5e7eb8e96adceaea78c29874e83f6c9ec15
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Oct 29 03:10:23 2011 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Oct 29 03:10:23 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=f935a5e7
7
8 Use any() instead of list(filter()).
9
10 ---
11 pym/_emerge/main.py | 2 +-
12 1 files changed, 1 insertions(+), 1 deletions(-)
13
14 diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py
15 index 162f70f..52e4c42 100644
16 --- a/pym/_emerge/main.py
17 +++ b/pym/_emerge/main.py
18 @@ -1733,7 +1733,7 @@ def emerge_main(args=None):
19 news_counts = count_unread_news(
20 root_config.trees["porttree"].dbapi,
21 root_config.trees["vartree"].dbapi)
22 - if list(filter(None, news_counts.values())):
23 + if any(news_counts.values()):
24 display_news_notifications(news_counts)
25 elif "--quiet" not in myopts:
26 print("", colorize("GOOD", "*"), "No news items were found.")