From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1RJzJj-0000Wy-VL for garchives@archives.gentoo.org; Sat, 29 Oct 2011 03:10:44 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9221F21C021; Sat, 29 Oct 2011 03:10:31 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 1F47221C021 for ; Sat, 29 Oct 2011 03:10:31 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 662431B4020 for ; Sat, 29 Oct 2011 03:10:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id C38B680043 for ; Sat, 29 Oct 2011 03:10:29 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: Subject: [gentoo-commits] proj/portage:master commit in: pym/_emerge/ X-VCS-Repository: proj/portage X-VCS-Files: pym/_emerge/main.py X-VCS-Directories: pym/_emerge/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: f935a5e7eb8e96adceaea78c29874e83f6c9ec15 Date: Sat, 29 Oct 2011 03:10:29 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: d48888dc81586c8b84c6a86962553974 commit: f935a5e7eb8e96adceaea78c29874e83f6c9ec15 Author: Zac Medico gentoo org> AuthorDate: Sat Oct 29 03:10:23 2011 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Oct 29 03:10:23 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/portage.git;a= =3Dcommit;h=3Df935a5e7 Use any() instead of list(filter()). --- 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 162f70f..52e4c42 100644 --- a/pym/_emerge/main.py +++ b/pym/_emerge/main.py @@ -1733,7 +1733,7 @@ def emerge_main(args=3DNone): news_counts =3D 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.")