Patch Detail
Show a patch.
GET /api/1.1/patches/19370/?format=api
{ "id": 19370, "url": "https://patchwork.libcamera.org/api/1.1/patches/19370/?format=api", "web_url": "https://patchwork.libcamera.org/patch/19370/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/1.1/projects/1/?format=api", "name": "libcamera", "link_name": "libcamera", "list_id": "libcamera_core", "list_email": "libcamera-devel@lists.libcamera.org", "web_url": "", "scm_url": "", "webscm_url": "" }, "msgid": "<20240105131621.586786-1-mzamazal@redhat.com>", "date": "2024-01-05T13:16:21", "name": "[libcamera-devel] utils: ipc: mojom_libcamera_generator.py: Fix Python warning", "commit_ref": "3d45b9ad9aefd4b1e702f89febe4aa6e6d3e2b9c", "pull_url": null, "state": "accepted", "archived": false, "hash": "0dd9d858dd97b12079440090069b12c809c4c4a4", "submitter": { "id": 177, "url": "https://patchwork.libcamera.org/api/1.1/people/177/?format=api", "name": "Milan Zamazal", "email": "mzamazal@redhat.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/19370/mbox/", "series": [ { "id": 4133, "url": "https://patchwork.libcamera.org/api/1.1/series/4133/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4133", "date": "2024-01-05T13:16:21", "name": "[libcamera-devel] utils: ipc: mojom_libcamera_generator.py: Fix Python warning", "version": 1, "mbox": "https://patchwork.libcamera.org/series/4133/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/19370/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/19370/checks/", "tags": {}, "headers": { "Return-Path": "<libcamera-devel-bounces@lists.libcamera.org>", "X-Original-To": "parsemail@patchwork.libcamera.org", "Delivered-To": "parsemail@patchwork.libcamera.org", "Received": [ "from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id A215CBDB1D\n\tfor <parsemail@patchwork.libcamera.org>;\n\tFri, 5 Jan 2024 13:16:54 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id D4A8E62B49;\n\tFri, 5 Jan 2024 14:16:53 +0100 (CET)", "from us-smtp-delivery-124.mimecast.com\n\t(us-smtp-delivery-124.mimecast.com [170.10.133.124])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 3B66561D81\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 5 Jan 2024 14:16:52 +0100 (CET)", "from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])\n\tby relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,\n\tcipher=TLS_AES_256_GCM_SHA384) id us-mta-298-ovzmqXkRMnyTGMwNj4ABRw-1;\n\tFri, 05 Jan 2024 08:16:50 -0500", "from smtp.corp.redhat.com\n\t(int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\tkey-exchange X25519 server-signature RSA-PSS (2048 bits)\n\tserver-digest SHA256) (No client certificate requested)\n\tby mimecast-mx02.redhat.com (Postfix) with ESMTPS id D9AE91C05149\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tFri, 5 Jan 2024 13:16:49 +0000 (UTC)", "from nuthatch.redhat.com (unknown [10.45.225.183])\n\tby smtp.corp.redhat.com (Postfix) with ESMTP id 271015190;\n\tFri, 5 Jan 2024 13:16:48 +0000 (UTC)" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; c=relaxed/simple; d=libcamera.org;\n\ts=mail; t=1704460613;\n\tbh=ULIMCf2/9F+n98il2JJpX3C39FH9XKdeblIytrv8Mf4=;\n\th=To:Date:Subject:List-Id:List-Unsubscribe:List-Archive:List-Post:\n\tList-Help:List-Subscribe:From:Reply-To:From;\n\tb=Bur2/7vAUqUZDEnytKELzj6GSVURrn49RY5Unb0tRQYQZUAiR2Oj7V8rwgcIAV1NK\n\tKHZSzuU0fj2kLBUUDUf65eZVA8+ZzpzJ76w4yY2Z63FEAwI/y2V38yTTrUuu3Ee2KK\n\tQP3WI3IDY+wgLb0+vIiMqQZ/NjuXrZwnA7rMQuvnX9ix9bVuTT1q/qCwXXXjTMVwnr\n\txAsTMFD0Eyy28jr3HERlp1L6HyFKFeADQBvyobbbX/HcbeqlKo1kJusr2XO7XiIUWA\n\tN7mJ8r8LDbf2GTnkmgx1g7ykDN4ahHEPIz1S31tNEM0zQPX9WYFtP5VkmIw9sh2t/m\n\tvU2PduXKkl49Q==", "v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;\n\ts=mimecast20190719; t=1704460611;\n\th=from:from:reply-to:subject:subject:date:date:message-id:message-id:\n\tto:to:cc:cc:mime-version:mime-version:content-type:content-type:\n\tcontent-transfer-encoding:content-transfer-encoding;\n\tbh=9Yccz6hVBSB2gfMTjUN7XVMpd/ZhhSmMhXglJDvynDw=;\n\tb=W0oU32TyA1GNWFppQLsFvq/Us6fwZpTwsRj2dFXWA4XIRgC1la180A/jSOLIKS/1ryiXVK\n\tcYG3jj8I5MXadQPtLvmh9OFvLHl7uVdhKJMzhTEmlIQLfjZTqVFoTB/fBbwlGncoljsRRx\n\t8lbsmEcGdD7jPYmHzq0+0jv5vUA6ftQ=" ], "Authentication-Results": "lancelot.ideasonboard.com; dkim=pass (1024-bit key; \n\tunprotected) header.d=redhat.com\n\theader.i=@redhat.com header.b=\"W0oU32Ty\"; \n\tdkim-atps=neutral", "X-MC-Unique": "ovzmqXkRMnyTGMwNj4ABRw-1", "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", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain; charset=\"US-ASCII\"; x-default=true", "Subject": "[libcamera-devel] [PATCH] utils: ipc: mojom_libcamera_generator.py:\n\tFix Python warning", "X-BeenThere": "libcamera-devel@lists.libcamera.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "<libcamera-devel.lists.libcamera.org>", "List-Unsubscribe": "<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>", "List-Archive": "<https://lists.libcamera.org/pipermail/libcamera-devel/>", "List-Post": "<mailto:libcamera-devel@lists.libcamera.org>", "List-Help": "<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>", "List-Subscribe": "<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>", "From": "Milan Zamazal via libcamera-devel <libcamera-devel@lists.libcamera.org>", "Reply-To": "Milan Zamazal <mzamazal@redhat.com>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Python 3.12 starts emitting the following warning when building libcamera:\n\n .../utils/ipc/generators/mojom_libcamera_generator.py:372:\n SyntaxWarning: invalid escape sequence '\\.'\n if not re.match('^ipa\\.[0-9A-Za-z_]+', namespace):\n\n`r' prefix is now required before the regexp.\n\nSigned-off-by: Milan Zamazal <mzamazal@redhat.com>\n---\n utils/ipc/generators/mojom_libcamera_generator.py | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/utils/ipc/generators/mojom_libcamera_generator.py b/utils/ipc/generators/mojom_libcamera_generator.py\nindex 1a629f9d..582818c9 100644\n--- a/utils/ipc/generators/mojom_libcamera_generator.py\n+++ b/utils/ipc/generators/mojom_libcamera_generator.py\n@@ -369,7 +369,7 @@ def ValidateNamespace(namespace):\n if namespace == '':\n raise Exception('Must have a namespace')\n \n- if not re.match('^ipa\\.[0-9A-Za-z_]+', namespace):\n+ if not re.match(r'^ipa\\.[0-9A-Za-z_]+', namespace):\n raise Exception('Namespace must be of the form \"ipa.{pipeline_name}\"')\n \n def ValidateInterfaces(interfaces):\n", "prefixes": [ "libcamera-devel" ] }