Show a patch.

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

{
    "id": 2651,
    "url": "https://patchwork.libcamera.org/api/1.1/patches/2651/?format=api",
    "web_url": "https://patchwork.libcamera.org/patch/2651/",
    "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": "<20200116182603.108966-2-nicolas@ndufresne.ca>",
    "date": "2020-01-16T18:26:02",
    "name": "[libcamera-devel,1/2] checkstyle: Move from pep8 to pycodestyle",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": false,
    "hash": "f3bb50d3e1a47b913d00e2f1ea817f669ed09849",
    "submitter": {
        "id": 30,
        "url": "https://patchwork.libcamera.org/api/1.1/people/30/?format=api",
        "name": "Nicolas Dufresne",
        "email": "nicolas@ndufresne.ca"
    },
    "delegate": null,
    "mbox": "https://patchwork.libcamera.org/patch/2651/mbox/",
    "series": [
        {
            "id": 628,
            "url": "https://patchwork.libcamera.org/api/1.1/series/628/?format=api",
            "web_url": "https://patchwork.libcamera.org/project/libcamera/list/?series=628",
            "date": "2020-01-16T18:26:01",
            "name": "Add the ability to do pre-commit style check",
            "version": 1,
            "mbox": "https://patchwork.libcamera.org/series/628/mbox/"
        }
    ],
    "comments": "https://patchwork.libcamera.org/api/patches/2651/comments/",
    "check": "pending",
    "checks": "https://patchwork.libcamera.org/api/patches/2651/checks/",
    "tags": {},
    "headers": {
        "Return-Path": "<nicolas@ndufresne.ca>",
        "Received": [
            "from bhuna.collabora.co.uk (bhuna.collabora.co.uk\n\t[IPv6:2a00:1098:0:82:1000:25:2eeb:e3e3])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 9A0F060705\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tThu, 16 Jan 2020 19:26:29 +0100 (CET)",
            "from nicolas-tpx395.localdomain (unknown [IPv6:2610:98:8005::127])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits))\n\t(No client certificate requested) (Authenticated sender: nicolas)\n\tby bhuna.collabora.co.uk (Postfix) with ESMTPSA id 11A61294522;\n\tThu, 16 Jan 2020 18:26:28 +0000 (GMT)"
        ],
        "From": "nicolas@ndufresne.ca",
        "To": "libcamera-devel@lists.libcamera.org",
        "Cc": "Nicolas Dufresne <nicolas.dufresne@collabora.com>",
        "Date": "Thu, 16 Jan 2020 13:26:02 -0500",
        "Message-Id": "<20200116182603.108966-2-nicolas@ndufresne.ca>",
        "X-Mailer": "git-send-email 2.24.1",
        "In-Reply-To": "<20200116182603.108966-1-nicolas@ndufresne.ca>",
        "References": "<20200116182603.108966-1-nicolas@ndufresne.ca>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[libcamera-devel] [PATCH 1/2] checkstyle: Move from pep8 to\n\tpycodestyle",
        "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>",
        "X-List-Received-Date": "Thu, 16 Jan 2020 18:26:29 -0000"
    },
    "content": "From: Nicolas Dufresne <nicolas.dufresne@collabora.com>\n\nThe tool has been renamed in 2016 to make it more obvious what it\nis doing. There is no other changes needed on our side.\n\nSee https://github.com/PyCQA/pycodestyle/issues/466\n\nSigned-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>\n---\n utils/checkstyle.py | 4 ++--\n 1 file changed, 2 insertions(+), 2 deletions(-)\n mode change 100755 => 100644 utils/checkstyle.py",
    "diff": "diff --git a/utils/checkstyle.py b/utils/checkstyle.py\nold mode 100755\nnew mode 100644\nindex 93f0291..7edea25\n--- a/utils/checkstyle.py\n+++ b/utils/checkstyle.py\n@@ -321,10 +321,10 @@ class Pep8Checker(StyleChecker):\n         data = ''.join(self.__content).encode('utf-8')\n \n         try:\n-            ret = subprocess.run(['pep8', '--ignore=E501', '-'],\n+            ret = subprocess.run(['pycodestyle', '--ignore=E501', '-'],\n                                  input=data, stdout=subprocess.PIPE)\n         except FileNotFoundError:\n-            issues.append(StyleIssue(0, None, \"Please install pep8 to validate python additions\"))\n+            issues.append(StyleIssue(0, None, \"Please install pycodestyle to validate python additions\"))\n             return issues\n \n         results = ret.stdout.decode('utf-8').splitlines()\n",
    "prefixes": [
        "libcamera-devel",
        "1/2"
    ]
}