From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 3F8E913888F for ; Tue, 6 Oct 2015 16:46:40 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3230F21C045; Tue, 6 Oct 2015 16:46:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 898E321C03E for ; Tue, 6 Oct 2015 16:46:33 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.gentoo.org (Postfix) with ESMTP id A83C83409E6 for ; Tue, 6 Oct 2015 16:46:31 +0000 (UTC) From: Mike Frysinger To: gentoo-catalyst@lists.gentoo.org Subject: [gentoo-catalyst] [PATCH 2/4] lint: drop use of apply() Date: Tue, 6 Oct 2015 12:46:27 -0400 Message-Id: <1444149989-1258-2-git-send-email-vapier@gentoo.org> X-Mailer: git-send-email 2.5.2 In-Reply-To: <1444149989-1258-1-git-send-email-vapier@gentoo.org> References: <1444149989-1258-1-git-send-email-vapier@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-catalyst@lists.gentoo.org Reply-to: gentoo-catalyst@lists.gentoo.org X-Archives-Salt: e83a9775-c577-40da-9fde-21ea5f0944a0 X-Archives-Hash: 8065c8d96e84d4ea9cc6b9b86e3ad175 This builtin has been deprecated since python-2.3, so call the function directly instead of via apply. --- catalyst/base/stagebase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/catalyst/base/stagebase.py b/catalyst/base/stagebase.py index 7bc7522..fcdf729 100644 --- a/catalyst/base/stagebase.py +++ b/catalyst/base/stagebase.py @@ -1426,7 +1426,7 @@ class StageBase(TargetBase, ClearBase, GenBase): print "--- Running action sequence: "+x sys.stdout.flush() try: - apply(getattr(self,x)) + getattr(self, x)() except LockInUse: print "Error, unable to aquire the lock..." print " Catalyst aborting...." -- 2.5.2