diff options
author | Zac Medico <zmedico@gentoo.org> | 2011-10-28 20:10:23 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2011-10-28 20:10:23 -0700 |
commit | f935a5e7eb8e96adceaea78c29874e83f6c9ec15 (patch) | |
tree | d1b48a20b4db2d77171c650f8bb71c1d329f4a2b | |
parent | a828ef4cb5ee60e448a95bb746a55fb476b1c575 (diff) | |
download | portage-f935a5e7eb8e96adceaea78c29874e83f6c9ec15.tar.gz portage-f935a5e7eb8e96adceaea78c29874e83f6c9ec15.tar.bz2 portage-f935a5e7eb8e96adceaea78c29874e83f6c9ec15.zip |
Use any() instead of list(filter()).
-rw-r--r-- | pym/_emerge/main.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/_emerge/main.py b/pym/_emerge/main.py index 162f70ffd..52e4c4286 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1733,7 +1733,7 @@ def emerge_main(args=None): news_counts = count_unread_news( root_config.trees["porttree"].dbapi, root_config.trees["vartree"].dbapi) - if list(filter(None, news_counts.values())): + if any(news_counts.values()): display_news_notifications(news_counts) elif "--quiet" not in myopts: print("", colorize("GOOD", "*"), "No news items were found.") |