get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 2196953,
    "url": "http://patchwork.ozlabs.org/api/patches/2196953/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260216172335.1745811-1-pablo@netfilter.org/",
    "project": {
        "id": 26,
        "url": "http://patchwork.ozlabs.org/api/projects/26/?format=api",
        "name": "Netfilter Development",
        "link_name": "netfilter-devel",
        "list_id": "netfilter-devel.vger.kernel.org",
        "list_email": "netfilter-devel@vger.kernel.org",
        "web_url": null,
        "scm_url": null,
        "webscm_url": null,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20260216172335.1745811-1-pablo@netfilter.org>",
    "list_archive_url": null,
    "date": "2026-02-16T17:23:35",
    "name": "[nft] Tree-wide use of python3",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "d7589e5ca9fcd127b20f223e512368459e4300a5",
    "submitter": {
        "id": 1315,
        "url": "http://patchwork.ozlabs.org/api/people/1315/?format=api",
        "name": "Pablo Neira Ayuso",
        "email": "pablo@netfilter.org"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/netfilter-devel/patch/20260216172335.1745811-1-pablo@netfilter.org/mbox/",
    "series": [
        {
            "id": 492334,
            "url": "http://patchwork.ozlabs.org/api/series/492334/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netfilter-devel/list/?series=492334",
            "date": "2026-02-16T17:23:35",
            "name": "[nft] Tree-wide use of python3",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/492334/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/2196953/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/2196953/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "\n <netfilter-devel+bounces-10788-incoming=patchwork.ozlabs.org@vger.kernel.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "netfilter-devel@vger.kernel.org"
        ],
        "Delivered-To": "patchwork-incoming@legolas.ozlabs.org",
        "Authentication-Results": [
            "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=netfilter.org header.i=@netfilter.org\n header.a=rsa-sha256 header.s=2025 header.b=i4+cYZ5p;\n\tdkim-atps=neutral",
            "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c04:e001:36c::12fc:5321; helo=tor.lore.kernel.org;\n envelope-from=netfilter-devel+bounces-10788-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)",
            "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=\"i4+cYZ5p\"",
            "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=217.70.190.124",
            "smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org",
            "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=netfilter.org"
        ],
        "Received": [
            "from tor.lore.kernel.org (tor.lore.kernel.org\n [IPv6:2600:3c04:e001:36c::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fF8kn6cF6z1xpY\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 17 Feb 2026 04:23:45 +1100 (AEDT)",
            "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby tor.lore.kernel.org (Postfix) with ESMTP id 143CE300D902\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 16 Feb 2026 17:23:44 +0000 (UTC)",
            "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 055482DAFA9;\n\tMon, 16 Feb 2026 17:23:43 +0000 (UTC)",
            "from mail.netfilter.org (mail.netfilter.org [217.70.190.124])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 70465287506\n\tfor <netfilter-devel@vger.kernel.org>; Mon, 16 Feb 2026 17:23:40 +0000 (UTC)",
            "from localhost.localdomain (mail-agni [217.70.190.124])\n\tby mail.netfilter.org (Postfix) with ESMTPSA id 4B17F602C8\n\tfor <netfilter-devel@vger.kernel.org>; Mon, 16 Feb 2026 18:23:38 +0100 (CET)"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1771262622; cv=none;\n b=HDjLxHxpddyQZp/M/86k/Y7jum1GhAB0sWaPuFiX3fQnegAidPUhIagOlHbra/ZF37X0pX3Bn+7rxdTpuAtICd2hcHvg9ya/f14vgTwEcJtVINuLNL/ZuXYjk3/UlRuMTVc3FuoFeDWt4QnHZrlDL01dvmAxd5/PpBVrXqB44mo=",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1771262622; c=relaxed/simple;\n\tbh=QWkGM1A80m1+jEmrtMlDKXkreTVZZRtbMrGZC3dsBA4=;\n\th=From:To:Subject:Date:Message-ID:MIME-Version;\n b=NAFR7lpV1d2Xa0Zei012GLb/4C2GEHJiG7NQxKW1/Ulb1ApjbphKDltX6dAhaRFY/slvYBUfqKMqZbTiwTkr0+IUxPs/i6VT+Ece2v/6eslu9h90Os4jWgk+7uY5hfXXHc47sSh7E5FX6CbMIwLOqkOxf2cjbTyHAMKyh5roTTw=",
        "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=none (p=none dis=none) header.from=netfilter.org;\n spf=pass smtp.mailfrom=netfilter.org;\n dkim=pass (2048-bit key) header.d=netfilter.org header.i=@netfilter.org\n header.b=i4+cYZ5p; arc=none smtp.client-ip=217.70.190.124",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=netfilter.org;\n\ts=2025; t=1771262618;\n\tbh=T9Fq5wm9vKAsrdWj/dREWOOFpnCtLMAJhT0NBVW2U4s=;\n\th=From:To:Subject:Date:From;\n\tb=i4+cYZ5p4JiHhkxGYT74m72TyjRFxeAJ6g45/le+00rsqD/aV3bphZiEXMmuIhNbd\n\t PJPRMgiISEeX9O0SyHib3shNalW2ZQl+g/1+nqgvql7JC/GjWW94aNum5kVlCH8M1m\n\t 4RhjhCblql++6mmf0mZ2NjeCcn5pvvo57M3hyLjAJB3BercCjvPFKGHsCMVYyO+AOL\n\t Si1xdX6YX5Fg3bFXrlzT/eAnBJebIJi/adRxFVzoZNcIU8TfwBFEub3x7ya44c/NEm\n\t UOlV7A2Uv3zBbKWWBSURK8DrUVEKrJvi9vta+MZf+5T0zhKZivIXjOG79QjfODVpdW\n\t hmw7+kX7jpjyg==",
        "From": "Pablo Neira Ayuso <pablo@netfilter.org>",
        "To": "netfilter-devel@vger.kernel.org",
        "Subject": "[PATCH nft] Tree-wide use of python3",
        "Date": "Mon, 16 Feb 2026 18:23:35 +0100",
        "Message-ID": "<20260216172335.1745811-1-pablo@netfilter.org>",
        "X-Mailer": "git-send-email 2.47.3",
        "Precedence": "bulk",
        "X-Mailing-List": "netfilter-devel@vger.kernel.org",
        "List-Id": "<netfilter-devel.vger.kernel.org>",
        "List-Subscribe": "<mailto:netfilter-devel+subscribe@vger.kernel.org>",
        "List-Unsubscribe": "<mailto:netfilter-devel+unsubscribe@vger.kernel.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit"
    },
    "content": "It seems that unversioned Python shebangs are discouraged these days:\n\n- See the lintian web on Debian:\n  https://lintian.debian.org/tags/script-uses-unversioned-python-in-shebang.html\n\n- Also, see \"Finalizing Fedora's Switch to Python3\":\n  https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3\n\nReplace them all tree-wide.\n\nSigned-off-by: Pablo Neira Ayuso <pablo@netfilter.org>\n---\n INSTALL                            | 4 ++--\n py/setup.py                        | 2 +-\n py/src/nftables.py                 | 2 +-\n tests/json_echo/run-test.py        | 2 +-\n tests/py/nft-test.py               | 2 +-\n tests/shell/helpers/json-pretty.sh | 4 ++--\n 6 files changed, 8 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/INSTALL b/INSTALL\nindex 0c48c98950d8..05282a44c71f 100644\n--- a/INSTALL\n+++ b/INSTALL\n@@ -93,11 +93,11 @@ Installation instructions for nftables\n  CPython bindings are available for nftables under the py/ folder.  They can be\n  installed using pip:\n \n-\tpython -m pip install py/\n+\tpython3 -m pip install py/\n \n  A legacy setup.py script can also be used:\n \n-\t( cd py && python setup.py install )\n+\t( cd py && python3 setup.py install )\n \n  However, this method is deprecated.\n \ndiff --git a/py/setup.py b/py/setup.py\nindex beda28e82166..229b2ebbbc90 100755\n--- a/py/setup.py\n+++ b/py/setup.py\n@@ -1,4 +1,4 @@\n-#!/usr/bin/env python\n+#!/usr/bin/env python3\n \n from setuptools import setup\n \ndiff --git a/py/src/nftables.py b/py/src/nftables.py\nindex f1e43ade2830..abb4fc9aaab6 100644\n--- a/py/src/nftables.py\n+++ b/py/src/nftables.py\n@@ -1,4 +1,4 @@\n-#!/usr/bin/python\n+#!/usr/bin/python3\n # Copyright(C) 2018 Phil Sutter <phil@nwl.cc>\n \n # This program is free software; you can redistribute it and/or modify\ndiff --git a/tests/json_echo/run-test.py b/tests/json_echo/run-test.py\nindex 7d0eca0aacae..ed8360bcfbd9 100755\n--- a/tests/json_echo/run-test.py\n+++ b/tests/json_echo/run-test.py\n@@ -1,4 +1,4 @@\n-#!/usr/bin/python\n+#!/usr/bin/python3\n \n from __future__ import print_function\n import sys\ndiff --git a/tests/py/nft-test.py b/tests/py/nft-test.py\nindex ff2412acc21e..53fd3f7ae6fe 100755\n--- a/tests/py/nft-test.py\n+++ b/tests/py/nft-test.py\n@@ -1,4 +1,4 @@\n-#!/usr/bin/env python\n+#!/usr/bin/env python3\n #\n # (C) 2014 by Ana Rey Botello <anarey@gmail.com>\n #\ndiff --git a/tests/shell/helpers/json-pretty.sh b/tests/shell/helpers/json-pretty.sh\nindex 31739b02bc6d..e8679583e89b 100755\n--- a/tests/shell/helpers/json-pretty.sh\n+++ b/tests/shell/helpers/json-pretty.sh\n@@ -1,7 +1,7 @@\n #!/bin/bash -e\n \n exec_pretty() {\n-\t# The output of this command must be stable (and `jq` and python\n+\t# The output of this command must be stable (and `jq` and python3\n \t# fallback must generate the same output.\n \n \tif command -v jq &>/dev/null ; then\n@@ -9,7 +9,7 @@ exec_pretty() {\n \t\texec jq\n \tfi\n \n-\t# Fallback to python.\n+\t# Fallback to python3.\n \texec python3 -c '\n import json\n import sys\n",
    "prefixes": [
        "nft"
    ]
}