From patchwork Thu Dec 24 12:28:48 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 10737 X-Patchwork-Delegate: laurent.pinchart@ideasonboard.com Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id 59ABFC0F1A for ; Thu, 24 Dec 2020 12:29:11 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 6DA63619AF; Thu, 24 Dec 2020 13:29:09 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="wiG++nfE"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 6B23460528 for ; Thu, 24 Dec 2020 13:29:08 +0100 (CET) Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F15CFDFC for ; Thu, 24 Dec 2020 13:29:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1608812948; bh=zHoIUWSLaD0q02RhJWnqD6Uw8yZ235rdSFwoTc1c/9c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=wiG++nfEEoEshQNaWjjS6SJGstKvvWLPdmyTKDfamWPLlTr4kq+JJk/K3mwpvzAp0 61sBdSC7fvCyL3ItHdyYqf9XOlEE//DEfXQOvSn7P+FV9LCmfx6ZBaMI3VY7H0deFi Tgau4rLTUviy89VksLkdhFuXGL6K38RHVeR3vjyc= From: Laurent Pinchart To: libcamera-devel@lists.libcamera.org Date: Thu, 24 Dec 2020 14:28:48 +0200 Message-Id: <20201224122855.22200-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201224122855.22200-1-laurent.pinchart@ideasonboard.com> References: <20201224122855.22200-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 1/8] utils: checkstyle.py: Drop arguments to super() when possible X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" The super() call is a shortcut syntax for super(__class__, ). Drom the arguments when they match the default. Signed-off-by: Laurent Pinchart Reviewed-by: Niklas Söderlund Reviewed-by: Paul Elder --- utils/checkstyle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/checkstyle.py b/utils/checkstyle.py index 7225cac47a4e..c04bf3850dcd 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -198,7 +198,7 @@ _style_checkers = [] class StyleCheckerRegistry(type): def __new__(cls, clsname, bases, attrs): - newclass = super(StyleCheckerRegistry, cls).__new__(cls, clsname, bases, attrs) + newclass = super().__new__(cls, clsname, bases, attrs) if clsname != 'StyleChecker': _style_checkers.append(newclass) return newclass @@ -387,7 +387,7 @@ _formatters = [] class FormatterRegistry(type): def __new__(cls, clsname, bases, attrs): - newclass = super(FormatterRegistry, cls).__new__(cls, clsname, bases, attrs) + newclass = super().__new__(cls, clsname, bases, attrs) if clsname != 'Formatter': _formatters.append(newclass) return newclass