From patchwork Fri Jan 5 13:16:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Milan Zamazal X-Patchwork-Id: 19370 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 A215CBDB1D for ; Fri, 5 Jan 2024 13:16:54 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id D4A8E62B49; Fri, 5 Jan 2024 14:16:53 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org; s=mail; t=1704460613; bh=ULIMCf2/9F+n98il2JJpX3C39FH9XKdeblIytrv8Mf4=; h=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=Bur2/7vAUqUZDEnytKELzj6GSVURrn49RY5Unb0tRQYQZUAiR2Oj7V8rwgcIAV1NK KHZSzuU0fj2kLBUUDUf65eZVA8+ZzpzJ76w4yY2Z63FEAwI/y2V38yTTrUuu3Ee2KK QP3WI3IDY+wgLb0+vIiMqQZ/NjuXrZwnA7rMQuvnX9ix9bVuTT1q/qCwXXXjTMVwnr xAsTMFD0Eyy28jr3HERlp1L6HyFKFeADQBvyobbbX/HcbeqlKo1kJusr2XO7XiIUWA N7mJ8r8LDbf2GTnkmgx1g7ykDN4ahHEPIz1S31tNEM0zQPX9WYFtP5VkmIw9sh2t/m vU2PduXKkl49Q== 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 3B66561D81 for ; Fri, 5 Jan 2024 14:16:52 +0100 (CET) Authentication-Results: lancelot.ideasonboard.com; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.b="W0oU32Ty"; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704460611; 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; bh=9Yccz6hVBSB2gfMTjUN7XVMpd/ZhhSmMhXglJDvynDw=; b=W0oU32TyA1GNWFppQLsFvq/Us6fwZpTwsRj2dFXWA4XIRgC1la180A/jSOLIKS/1ryiXVK cYG3jj8I5MXadQPtLvmh9OFvLHl7uVdhKJMzhTEmlIQLfjZTqVFoTB/fBbwlGncoljsRRx 8lbsmEcGdD7jPYmHzq0+0jv5vUA6ftQ= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-298-ovzmqXkRMnyTGMwNj4ABRw-1; Fri, 05 Jan 2024 08:16:50 -0500 X-MC-Unique: ovzmqXkRMnyTGMwNj4ABRw-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (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 D9AE91C05149 for ; Fri, 5 Jan 2024 13:16:49 +0000 (UTC) Received: from nuthatch.redhat.com (unknown [10.45.225.183]) by smtp.corp.redhat.com (Postfix) with ESMTP id 271015190; Fri, 5 Jan 2024 13:16:48 +0000 (UTC) To: libcamera-devel@lists.libcamera.org Date: Fri, 5 Jan 2024 14:16:21 +0100 Message-ID: <20240105131621.586786-1-mzamazal@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [libcamera-devel] [PATCH] utils: ipc: mojom_libcamera_generator.py: Fix Python warning 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: Milan Zamazal via libcamera-devel From: Milan Zamazal Reply-To: Milan Zamazal Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Python 3.12 starts emitting the following warning when building libcamera: .../utils/ipc/generators/mojom_libcamera_generator.py:372: SyntaxWarning: invalid escape sequence '\.' if not re.match('^ipa\.[0-9A-Za-z_]+', namespace): `r' prefix is now required before the regexp. Signed-off-by: Milan Zamazal Reviewed-by: Kieran Bingham Reviewed-by: Laurent Pinchart --- utils/ipc/generators/mojom_libcamera_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/ipc/generators/mojom_libcamera_generator.py b/utils/ipc/generators/mojom_libcamera_generator.py index 1a629f9d..582818c9 100644 --- a/utils/ipc/generators/mojom_libcamera_generator.py +++ b/utils/ipc/generators/mojom_libcamera_generator.py @@ -369,7 +369,7 @@ def ValidateNamespace(namespace): if namespace == '': raise Exception('Must have a namespace') - if not re.match('^ipa\.[0-9A-Za-z_]+', namespace): + if not re.match(r'^ipa\.[0-9A-Za-z_]+', namespace): raise Exception('Namespace must be of the form "ipa.{pipeline_name}"') def ValidateInterfaces(interfaces):