From patchwork Mon Jun 12 22:47:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 18727 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 38FFDC3290 for ; Mon, 12 Jun 2023 22:47:55 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D2B7561E5F; Tue, 13 Jun 2023 00:47:54 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1686610074; bh=pFIsOSDRcc8pIfEa2RsLe82QaIv0gE1BAISsqJvUaLk=; h=To:Date:In-Reply-To:References:Subject:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=YwiJZIk6BF4PMadquYWpCMmEBhAOCvZP52CQGiFb68YmlOjekBwjrVlWwhQ2nFHDR 3IhAe35hPNtIDnd2Y+0mP33lByEqeQG8MgrLGxiQy2J2qBzJK7vpFaLDvRGhcnAZ4H Y0Ta+H7vwOnkO2mkb6aTkRwikZlneBf/vRJJ0T87ej/7SUPsBkOXgM7Jf9VdYculbW FjauSqd8xbNg7Y5/HnQ+q2capNjjJJ0VQPdAv3keoG6FCCAVbgdiZipPdGMiDd5Vnw 5PD5fpCmIIhM1Bv+oXLzYn0HIco4qDlxLk5tkmhY8ZmByxgPBGvYCqnswhlX6Ktjxb 2gD4QNy5ZQarA== 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 02E8361E50 for ; Tue, 13 Jun 2023 00:47:53 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="i6Whi86E"; dkim-atps=neutral Received: from pendragon.ideasonboard.com (213-243-189-158.bb.dnainternet.fi [213.243.189.158]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 3822AC7F for ; Tue, 13 Jun 2023 00:47:23 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1686610043; bh=pFIsOSDRcc8pIfEa2RsLe82QaIv0gE1BAISsqJvUaLk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=i6Whi86EiWzMN9w3S/eq7eetGERX5B9vOmOgb/B4Dr7Iqp5ALy6zKqEBVfj8WArpE noljrgkxN+W+kMM9HCxDgVu7PMJEWd9Zc7uUbllUqNvgjdyaPqJPZjvWvHAU2+bqyq 6zwMPW1Ev55avoOHAqh9aQ2tb8oFFnwxKU9Cc9ko= To: libcamera-devel@lists.libcamera.org Date: Tue, 13 Jun 2023 01:47:48 +0300 Message-Id: <20230612224751.4437-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.39.3 In-Reply-To: <20230612224751.4437-1-laurent.pinchart@ideasonboard.com> References: <20230612224751.4437-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH v1 1/4] utils: checkstyle: Add __repr__ method to CommitFile class 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: , X-Patchwork-Original-From: Laurent Pinchart via libcamera-devel From: Laurent Pinchart Reply-To: Laurent Pinchart Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a custom representation to the CommitFile class in order to facilitate debugging. Signed-off-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- utils/checkstyle.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/utils/checkstyle.py b/utils/checkstyle.py index 5cc523b6fba3..7da888d8c365 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -191,6 +191,9 @@ class CommitFile: else: self.__filename = info[1] + def __repr__(self): + return f'{self.__status} {self.__filename}' + @property def filename(self): return self.__filename