get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/126093/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 126093,
    "url": "http://patches.dpdk.org/api/patches/126093/?format=api",
    "web_url": "http://patches.dpdk.org/project/dts/patch/20230414125255.67812-4-akihiko.odaki@daynix.com/",
    "project": {
        "id": 3,
        "url": "http://patches.dpdk.org/api/projects/3/?format=api",
        "name": "DTS",
        "link_name": "dts",
        "list_id": "dts.dpdk.org",
        "list_email": "dts@dpdk.org",
        "web_url": "",
        "scm_url": "git://dpdk.org/tools/dts",
        "webscm_url": "http://git.dpdk.org/tools/dts/",
        "list_archive_url": "https://inbox.dpdk.org/dts",
        "list_archive_url_format": "https://inbox.dpdk.org/dts/{}",
        "commit_url_format": ""
    },
    "msgid": "<20230414125255.67812-4-akihiko.odaki@daynix.com>",
    "list_archive_url": "https://inbox.dpdk.org/dts/20230414125255.67812-4-akihiko.odaki@daynix.com",
    "date": "2023-04-14T12:52:51",
    "name": "[3/7] framework/ssh_pexpect: Remove duplicate regex flags",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "58877c8ee8682768d4c7c56827fa9b8b65fe8150",
    "submitter": {
        "id": 3042,
        "url": "http://patches.dpdk.org/api/people/3042/?format=api",
        "name": "Akihiko Odaki",
        "email": "akihiko.odaki@daynix.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dts/patch/20230414125255.67812-4-akihiko.odaki@daynix.com/mbox/",
    "series": [
        {
            "id": 27720,
            "url": "http://patches.dpdk.org/api/series/27720/?format=api",
            "web_url": "http://patches.dpdk.org/project/dts/list/?series=27720",
            "date": "2023-04-14T12:52:48",
            "name": "Fix for Fedora 37",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/27720/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/126093/comments/",
    "check": "pending",
    "checks": "http://patches.dpdk.org/api/patches/126093/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dts-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 1328042942;\n\tFri, 14 Apr 2023 14:53:16 +0200 (CEST)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 0F60342BB1;\n\tFri, 14 Apr 2023 14:53:16 +0200 (CEST)",
            "from mail-pj1-f49.google.com (mail-pj1-f49.google.com\n [209.85.216.49]) by mails.dpdk.org (Postfix) with ESMTP id 8A3F0400D5\n for <dts@dpdk.org>; Fri, 14 Apr 2023 14:53:14 +0200 (CEST)",
            "by mail-pj1-f49.google.com with SMTP id\n 98e67ed59e1d1-246fa478d45so575618a91.3\n for <dts@dpdk.org>; Fri, 14 Apr 2023 05:53:14 -0700 (PDT)",
            "from alarm.flets-east.jp ([2400:4050:a840:1e00:4457:c267:5e09:481b])\n by smtp.gmail.com with ESMTPSA id\n u21-20020a62ed15000000b00627df85cd72sm2961787pfh.199.2023.04.14.05.53.12\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Fri, 14 Apr 2023 05:53:13 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=daynix-com.20221208.gappssmtp.com; s=20221208; t=1681476793; x=1684068793;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=nsb/q294Mamfqv+eUA0p1PMxc7C8mQsu5c85G0MyIJA=;\n b=fCvBNfoPVuJ2cEqcJWFV98GG96seNATPLW1pP/Ds2dluxqQPBP/LuuGHY3itg6itYO\n 2b7eAB3XhL7T+VXJdM+vDRhNZx0oMTR4gRhHvH/lRvqo07bEce5ll0tiGjs8l2IhZLeq\n 3h/3PEdOCOf8TlgGjdfTRK6KC7mI4NTEWlNZ48Hy4qONe0wcwxoHCt46iSeXZABrCYh8\n Bffzzgz2kBZPFcK4tDLMhdX+/6CLhjO+ATY3csi2qWgu8AbO76Iix4FUqxri670lcedy\n ELaXvh5w3m0onfz1ecfor/6EjVyuL3QS0/8KKRaAMxfMVJctPiQO7kogrrlhb27X65H4\n gvwQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20221208; t=1681476793; x=1684068793;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=nsb/q294Mamfqv+eUA0p1PMxc7C8mQsu5c85G0MyIJA=;\n b=FnjDBP+UoefTs0iZ6DZ8ADJuaaAu7uoPgTIjuXcXlzBp8+MzAZ7LnC/05p5NY0iIlN\n 7utOZS2/R9JnhTOb0aCMz0eY20HoIEaMA4iNItOv8X3k5tM7VVlWp7imE7hn7obVE1XJ\n QCNaxsWa1mTQ/GM32mlDHjn5yIjjsDqQyS3tH6Q6lJLRim7Q4lLyz93UXy3Ipc8Ji5Fj\n DZ43MLNPLoDsP6zu446NT04VyfzCibk8t0lDl8tFcWMF+QEOE82+QmxnETahnA3TSDW/\n 9LbOWMFrnNG55Ue6oZBPuBZU7LSEZ0Ou0O3teZX4IBGcJlGYNkr7jbpSUOYWBhEcQEZU\n oPiQ==",
        "X-Gm-Message-State": "AAQBX9d2+bkoiutdvX8BtPNVshX0bDyUyKTm8xroEfBzVUe/yTk+YGGI\n FKvE3qqp0i7iY0o7MRSEg4rKSw/TtyLWAmG3VIc=",
        "X-Google-Smtp-Source": "\n AKy350Yjbz5U304lQ2wQdmgeKiDMK5jGD0AQ0w7FtD4KuE9A2bCdZqWPV/58Ufzb2suLmrgrnOqLKg==",
        "X-Received": "by 2002:a05:6a00:2449:b0:628:1b3:d499 with SMTP id\n d9-20020a056a00244900b0062801b3d499mr7931321pfj.21.1681476793692;\n Fri, 14 Apr 2023 05:53:13 -0700 (PDT)",
        "From": "Akihiko Odaki <akihiko.odaki@daynix.com>",
        "To": "",
        "Cc": "dts@dpdk.org,\n\tAkihiko Odaki <akihiko.odaki@daynix.com>",
        "Subject": "[PATCH 3/7] framework/ssh_pexpect: Remove duplicate regex flags",
        "Date": "Fri, 14 Apr 2023 21:52:51 +0900",
        "Message-Id": "<20230414125255.67812-4-akihiko.odaki@daynix.com>",
        "X-Mailer": "git-send-email 2.40.0",
        "In-Reply-To": "<20230414125255.67812-1-akihiko.odaki@daynix.com>",
        "References": "<20230414125255.67812-1-akihiko.odaki@daynix.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dts@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "test suite reviews and discussions <dts.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dts/>",
        "List-Post": "<mailto:dts@dpdk.org>",
        "List-Help": "<mailto:dts-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dts-bounces@dpdk.org"
    },
    "content": "The regex pattern \"(?i)\" sets global re.I flag. Not only the duplicate\nregex flags are redundant, but the flags not placed at the start of the\nregex makes it incompatible with Python 3.11, according to:\nhttps://docs.python.org/3.11/library/re.html#regular-expression-syntax\n\nSigned-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>\n---\n framework/ssh_pexpect.py | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/framework/ssh_pexpect.py b/framework/ssh_pexpect.py\nindex 97406896..2132c066 100644\n--- a/framework/ssh_pexpect.py\n+++ b/framework/ssh_pexpect.py\n@@ -50,7 +50,7 @@ class SSHPexpect:\n                             original_prompt=\"[$#>]\",\n                             port=self.port,\n                             login_timeout=20,\n-                            password_regex=r\"(?i)(?:password:)|(?:passphrase for key)|(?i)(password for .+:)\",\n+                            password_regex=r\"(?i)(?:password:)|(?:passphrase for key)|(password for .+:)\",\n                         )\n                     except Exception as e:\n                         print(e)\n@@ -68,7 +68,7 @@ class SSHPexpect:\n                     self.username,\n                     self.password,\n                     original_prompt=\"[$#>]\",\n-                    password_regex=r\"(?i)(?:password:)|(?:passphrase for key)|(?i)(password for .+:)\",\n+                    password_regex=r\"(?i)(?:password:)|(?:passphrase for key)|(password for .+:)\",\n                 )\n             self.send_expect(\"stty -echo\", \"#\")\n             self.send_expect(\"stty columns 1000\", \"#\")\n",
    "prefixes": [
        "3/7"
    ]
}