From patchwork Tue Feb 27 12:14:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 19549 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 B901CBD160 for ; Tue, 27 Feb 2024 12:17:13 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 71A4E62864; Tue, 27 Feb 2024 13:17:13 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="V8yimGKi"; dkim-atps=neutral Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id F2EA6627FC for ; Tue, 27 Feb 2024 13:17:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1709036230; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=69WUoT02suTRh1N8p2ZLBuVWle6+8Vma8V0pKZjPhho=; b=V8yimGKioBN3tzeXdKd1TLqfQ2brIo2OCZ0eoOq86CDx3QQoyPJSMf2cYDmqeM5s6mUVoy O+GzzUlN6Ot17tjCE6n6U0961KrvxW20jOCH9EoPuk1wzqSiZkQwvDg6auntVMO5+EDYSg Z4O//W2qg8u5JbhvVzaNXmH18EMCK0U= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-436-IWv1H3jaOwKlyAjkdbcRAw-1; Tue, 27 Feb 2024 07:17:09 -0500 X-MC-Unique: IWv1H3jaOwKlyAjkdbcRAw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1B03D85A58C for ; Tue, 27 Feb 2024 12:17:09 +0000 (UTC) Received: from nuthatch.brq.redhat.com (unknown [10.43.17.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B17E1805; Tue, 27 Feb 2024 12:17:08 +0000 (UTC) From: Milan Zamazal To: libcamera-devel@lists.libcamera.org Subject: [PATCH 2/2] utils: checkstyle.py: Update LogCategoryChecker regexp Date: Tue, 27 Feb 2024 13:14:47 +0100 Message-ID: <20240227121448.656200-3-mzamazal@redhat.com> In-Reply-To: <20240227121448.656200-1-mzamazal@redhat.com> References: <20240227121448.656200-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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 regexp uses obsolete form, update it to mute the warning emitted by Python 3.12: SyntaxWarning: invalid escape sequence '\(' Signed-off-by: Milan Zamazal Reviewed-by: Laurent Pinchart Reviewed-by: Kieran Bingham --- utils/checkstyle.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/checkstyle.py b/utils/checkstyle.py index af553cfd..fb03dc34 100755 --- a/utils/checkstyle.py +++ b/utils/checkstyle.py @@ -588,7 +588,7 @@ class IncludeChecker(StyleChecker): class LogCategoryChecker(StyleChecker): - log_regex = re.compile('\\bLOG\((Debug|Info|Warning|Error|Fatal)\)') + log_regex = re.compile(r'\bLOG\((Debug|Info|Warning|Error|Fatal)\)') patterns = ('*.cpp',) def __init__(self, content):