get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 83655,
    "url": "https://patches.dpdk.org/api/patches/83655/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20201104070350.28224-4-stephen@networkplumber.org/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20201104070350.28224-4-stephen@networkplumber.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20201104070350.28224-4-stephen@networkplumber.org",
    "date": "2020-11-04T07:03:47",
    "name": "[v2,3/6] dpdk-devbind: fix python lint warnings for imports",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c7697839915808d3c288b4f06807eef2f25dd860",
    "submitter": {
        "id": 27,
        "url": "https://patches.dpdk.org/api/people/27/?format=api",
        "name": "Stephen Hemminger",
        "email": "stephen@networkplumber.org"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20201104070350.28224-4-stephen@networkplumber.org/mbox/",
    "series": [
        {
            "id": 13648,
            "url": "https://patches.dpdk.org/api/series/13648/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=13648",
            "date": "2020-11-04T07:03:44",
            "name": "dpdk-devbind: python lint cleanups",
            "version": 2,
            "mbox": "https://patches.dpdk.org/series/13648/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/83655/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/83655/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 7C9AAA04E7;\n\tWed,  4 Nov 2020 08:04:54 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4DBB8C814;\n\tWed,  4 Nov 2020 08:04:02 +0100 (CET)",
            "from mail-pg1-f171.google.com (mail-pg1-f171.google.com\n [209.85.215.171]) by dpdk.org (Postfix) with ESMTP id 0016EC7FA\n for <dev@dpdk.org>; Wed,  4 Nov 2020 08:03:58 +0100 (CET)",
            "by mail-pg1-f171.google.com with SMTP id g12so15777990pgm.8\n for <dev@dpdk.org>; Tue, 03 Nov 2020 23:03:58 -0800 (PST)",
            "from hermes.corp.microsoft.com (204-195-22-127.wavecable.com.\n [204.195.22.127])\n by smtp.gmail.com with ESMTPSA id z21sm1181177pfa.158.2020.11.03.23.03.55\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Tue, 03 Nov 2020 23:03:55 -0800 (PST)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=networkplumber-org.20150623.gappssmtp.com; s=20150623;\n h=from:to:cc:subject:date:message-id:in-reply-to:references\n :mime-version:content-transfer-encoding;\n bh=0sQzGL8TcXmEvvxZ1HAAB61ZBOoIxCoHB2bG7Yk5dL0=;\n b=JYoRhvqg/dEc497leNf03dQYCe5MMxc4NLw43uOk7z8x63Ie2QFyEBe4BCLehuVljt\n FYlRIln3+VaQbfi1bkfMdSDqPdipG9Se/8BQ7/rVG7JofSmzp2zlGJ2LoJyphGH5JlhZ\n nHbWihD/aJmIBUHVsQ7v7/LXw8+ixGjB9MKw0MGeY5qi11rWWGzWQVw1ESYR5REU9HEj\n /kSXJath+p2ONJWPyAoLKPE1OJWNzBJlURpCBoi3cydfBJwheOPgh6WhhKe4i+MGYOMC\n EtFAmhTNNcgBhvzAL2/dNCe9RwcL6c+2dytVmBPubsYDc8vGD//K6qo9B6hdmrsabRr1\n ZHUQ==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20161025;\n h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n :references:mime-version:content-transfer-encoding;\n bh=0sQzGL8TcXmEvvxZ1HAAB61ZBOoIxCoHB2bG7Yk5dL0=;\n b=bNHeg84PQ+Umj5l0hv6y7C5YqN1VWVMWogL6euuyAPlYPR/yqXGl5JujleiV3U7gef\n jEyvAu6vFap841q+t6IvPWIA/knL13egOEKuiTgzG5qDOmTP23GV6mgd3ZNWEqZtw5QY\n akQ4BP/5mmZFzmbYOs2gIBbyXo+nt+mWHlABf3khKKEaxZRmJSSZ8mmVV5Fr71/n3koB\n yxF3wCaxcdN+hh6mNSGxYpjUVyRgTOCYXIEw53UZP3t52Be+K38LaKm+1Gl7rXEuenb0\n asujfBgpxBf3+bmHpJ2UcJHaRTrs3/LABDXv+xluGpSeOl2gvY8FHnlfAanLcf7p7/hW\n gjcA==",
        "X-Gm-Message-State": "AOAM532k3shhDYh6cO0bUb6kIOfWY/B9r5zwYFNiRPF+OrVfjVu3Xdqx\n D0IgWOs3foM0EwzayeCSWBBOxM0YW35H/ybZ",
        "X-Google-Smtp-Source": "\n ABdhPJwskW/OEIG7QOfXmyVJUSlhc4tC16pvrB2FEFTXltj7UWu5XgCA06gSiIBrpkDhVS5hnwqYlg==",
        "X-Received": "by 2002:a63:9909:: with SMTP id d9mr19864071pge.360.1604473436748;\n Tue, 03 Nov 2020 23:03:56 -0800 (PST)",
        "From": "Stephen Hemminger <stephen@networkplumber.org>",
        "To": "dev@dpdk.org",
        "Cc": "Stephen Hemminger <stephen@networkplumber.org>",
        "Date": "Tue,  3 Nov 2020 23:03:47 -0800",
        "Message-Id": "<20201104070350.28224-4-stephen@networkplumber.org>",
        "X-Mailer": "git-send-email 2.27.0",
        "In-Reply-To": "<20201104070350.28224-1-stephen@networkplumber.org>",
        "References": "<20200906013133.26360-12-stephen@networkplumber.org>\n <20201104070350.28224-1-stephen@networkplumber.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Subject": "[dpdk-dev] [PATCH v2 3/6] dpdk-devbind: fix python lint warnings\n\tfor imports",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Address python lint complaints about unused imports.\n\nSigned-off-by: Stephen Hemminger <stephen@networkplumber.org>\n---\n usertools/dpdk-devbind.py | 8 ++++----\n 1 file changed, 4 insertions(+), 4 deletions(-)",
    "diff": "diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py\nindex 3a27641d0e08..4148b66b6841 100755\n--- a/usertools/dpdk-devbind.py\n+++ b/usertools/dpdk-devbind.py\n@@ -9,7 +9,7 @@\n import argparse\n \n from glob import glob\n-from os.path import exists, abspath, dirname, basename\n+from os.path import exists, basename\n from os.path import join as path_join\n \n # The PCI base class for all devices\n@@ -342,7 +342,7 @@ def bind_one(dev_id, driver, force):\n     # of unbinding those devices\n     if driver in dpdk_drivers:\n         filename = \"/sys/bus/pci/devices/%s/driver_override\" % dev_id\n-        if os.path.exists(filename):\n+        if exists(filename):\n             try:\n                 f = open(filename, \"w\")\n             except:\n@@ -405,7 +405,7 @@ def bind_one(dev_id, driver, force):\n     # Before unbinding it, overwrite driver_override with empty string so that\n     # the device can be bound to any other driver\n     filename = \"/sys/bus/pci/devices/%s/driver_override\" % dev_id\n-    if os.path.exists(filename):\n+    if exists(filename):\n         try:\n             f = open(filename, \"w\")\n         except:\n@@ -473,7 +473,7 @@ def bind_all(dev_list, driver, force=False):\n     # that are not bound to any other driver could be bound even if no one has\n     # asked them to. hence, we check the list of drivers again, and see if\n     # some of the previously-unbound devices were erroneously bound.\n-    if not os.path.exists(\"/sys/bus/pci/devices/%s/driver_override\" % d):\n+    if not exists(\"/sys/bus/pci/devices/%s/driver_override\" % d):\n         for d in devices.keys():\n             # skip devices that were already bound or that we know should be bound\n             if \"Driver_str\" in devices[d] or d in dev_list:\n",
    "prefixes": [
        "v2",
        "3/6"
    ]
}