Patch Detail
Show a patch.
GET /api/patches/19442/?format=api
{ "id": 19442, "url": "https://patchwork.libcamera.org/api/patches/19442/?format=api", "web_url": "https://patchwork.libcamera.org/patch/19442/", "project": { "id": 1, "url": "https://patchwork.libcamera.org/api/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": "<20240122110104.3206863-1-paul.elder@ideasonboard.com>", "date": "2024-01-22T11:01:04", "name": "utils: ipc: extract-docs: Fix escape characters in regex", "commit_ref": "81791d2cac70a3f549db85fb2e40e385b24e76fc", "pull_url": null, "state": "accepted", "archived": false, "hash": "e3834442a589fd4cff01c0c044ff86ce47383f6f", "submitter": { "id": 17, "url": "https://patchwork.libcamera.org/api/people/17/?format=api", "name": "Paul Elder", "email": "paul.elder@ideasonboard.com" }, "delegate": null, "mbox": "https://patchwork.libcamera.org/patch/19442/mbox/", "series": [ { "id": 4152, "url": "https://patchwork.libcamera.org/api/series/4152/?format=api", "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=4152", "date": "2024-01-22T11:01:04", "name": "utils: ipc: extract-docs: Fix escape characters in regex", "version": 1, "mbox": "https://patchwork.libcamera.org/series/4152/mbox/" } ], "comments": "https://patchwork.libcamera.org/api/patches/19442/comments/", "check": "pending", "checks": "https://patchwork.libcamera.org/api/patches/19442/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 8CE2DBDB1C\n\tfor <parsemail@patchwork.libcamera.org>;\n\tMon, 22 Jan 2024 11:01:23 +0000 (UTC)", "from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id 3DE0F61D30;\n\tMon, 22 Jan 2024 12:01:23 +0100 (CET)", "from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 24CE561D30\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tMon, 22 Jan 2024 12:01:22 +0100 (CET)", "from pyrite.hamster-moth.ts.net (h175-177-049-156.catv02.itscom.jp\n\t[175.177.49.156])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 068E8FA2;\n\tMon, 22 Jan 2024 12:00:07 +0100 (CET)" ], "Authentication-Results": "lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"OWu4pKrL\"; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1705921209;\n\tbh=gInpoAr+YGh3bcOLIfCR5BBvPjhIqvtRKQVKdzfi5Vo=;\n\th=From:To:Cc:Subject:Date:From;\n\tb=OWu4pKrLbJWp8DbIVO/BXqPHo81ak6zExEJwfpFvFyei3aAsQLbQiVCphMC0tnoRB\n\tgFHZS3UfX9QVAoW1WqyCJOlrqep+no+YHFB7UV2O/yDOzbqwnsbzprQor/jO2F5L8z\n\tLYLdNpgGsXZXufbohGtcXIBi5SmQZBsmfwCAPY1A=", "From": "Paul Elder <paul.elder@ideasonboard.com>", "To": "libcamera-devel@lists.libcamera.org", "Subject": "[PATCH] utils: ipc: extract-docs: Fix escape characters in regex", "Date": "Mon, 22 Jan 2024 20:01:04 +0900", "Message-Id": "<20240122110104.3206863-1-paul.elder@ideasonboard.com>", "X-Mailer": "git-send-email 2.39.2", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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>", "Errors-To": "libcamera-devel-bounces@lists.libcamera.org", "Sender": "\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>" }, "content": "Newer versions of python now generate a SyntaxWarning (SyntaxError in\nthe future [1]) for invalid escape sequences. Fix this, as there were\ninvalid escape sequences in the regexes:\n\n\"libcamera/utils/ipc/./extract-docs.py:13: SyntaxWarning: invalid escape\nsequence '\\/'\"\n\n[1] https://docs.python.org/3.12/library/re.html\n\nReported-by: Nicolas Dufresne <nicolas@ndufresne.ca>\nSigned-off-by: Paul Elder <paul.elder@ideasonboard.com>\n\n---\nI'm not actually able to reproduce the warning in the first place, but\nfrom my understanding this should fix the problem. Nicolas, could you\nconfirm this please?\n---\n utils/ipc/extract-docs.py | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)", "diff": "diff --git a/utils/ipc/extract-docs.py b/utils/ipc/extract-docs.py\nindex 8f7fff9ff..c2050c998 100755\n--- a/utils/ipc/extract-docs.py\n+++ b/utils/ipc/extract-docs.py\n@@ -10,9 +10,9 @@ import argparse\n import re\n import sys\n \n-regex_block_start = re.compile('^\\/\\*\\*$')\n-regex_block_end = re.compile('^ \\*\\/$')\n-regex_spdx = re.compile('^\\/\\* SPDX-License-Identifier: .* \\*\\/$')\n+regex_block_start = re.compile(r'^/\\*\\*$')\n+regex_block_end = re.compile(r'^ \\*/$')\n+regex_spdx = re.compile(r'^/\\* SPDX-License-Identifier: .* \\*/$')\n \n \n def main(argv):\n", "prefixes": [] }