get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 75187,
    "url": "http://patches.dpdk.org/api/patches/75187/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20200804140738.35317-3-louise.kilheeney@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<20200804140738.35317-3-louise.kilheeney@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20200804140738.35317-3-louise.kilheeney@intel.com",
    "date": "2020-08-04T14:07:31",
    "name": "[v4,2/9] usertools/dpdk-devbind: support python3 only",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "c47a93a735fe066dbdc081fa65a97a3dbc25fe52",
    "submitter": {
        "id": 1621,
        "url": "http://patches.dpdk.org/api/people/1621/?format=api",
        "name": "Louise Kilheeney",
        "email": "louise.kilheeney@intel.com"
    },
    "delegate": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20200804140738.35317-3-louise.kilheeney@intel.com/mbox/",
    "series": [
        {
            "id": 11492,
            "url": "http://patches.dpdk.org/api/series/11492/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=11492",
            "date": "2020-08-04T14:07:29",
            "name": "adding support for python 3 only.",
            "version": 4,
            "mbox": "http://patches.dpdk.org/series/11492/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/75187/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/75187/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 8C792A053A;\n\tTue,  4 Aug 2020 16:08:32 +0200 (CEST)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 2C9041C043;\n\tTue,  4 Aug 2020 16:08:05 +0200 (CEST)",
            "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n by dpdk.org (Postfix) with ESMTP id 1CB4A1C023\n for <dev@dpdk.org>; Tue,  4 Aug 2020 16:08:01 +0200 (CEST)",
            "from orsmga006.jf.intel.com ([10.7.209.51])\n by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 04 Aug 2020 07:08:01 -0700",
            "from silpixa00389033.ir.intel.com (HELO\n silpixa00389033.ger.corp.intel.com) ([10.237.223.171])\n by orsmga006.jf.intel.com with ESMTP; 04 Aug 2020 07:07:59 -0700"
        ],
        "IronPort-SDR": [
            "\n 9BOE/xcKYbjBYrItc4euaPB7lkXiic1d/sy2MJS9pIXPbberr/5ggqy5t6v5XEBx9t16qyoukJ\n ln1B0G3S3pdQ==",
            "\n vNte4MI51UpGeW1FQU0+d8pq14bgRezZU2Iv9r/v+9NM8m4RcHKRTuAhsmEI1outHgssu9cKQE\n BrsRDEAUCIow=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9702\"; a=\"237173535\"",
            "E=Sophos;i=\"5.75,434,1589266800\"; d=\"scan'208\";a=\"237173535\"",
            "E=Sophos;i=\"5.75,434,1589266800\"; d=\"scan'208\";a=\"292578169\""
        ],
        "X-Amp-Result": "SKIPPED(no attachment in message)",
        "X-Amp-File-Uploaded": "False",
        "X-ExtLoop1": "1",
        "From": "Louise Kilheeney <louise.kilheeney@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "anatoly.burakov@intel.com, bruce.richardson@intel.com,\n robin.jarry@6wind.com, Louise Kilheeney <louise.kilheeney@intel.com>",
        "Date": "Tue,  4 Aug 2020 15:07:31 +0100",
        "Message-Id": "<20200804140738.35317-3-louise.kilheeney@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20200804140738.35317-1-louise.kilheeney@intel.com>",
        "References": "<20200522132320.26373-1-louise.kilheeney@intel.com>\n <20200804140738.35317-1-louise.kilheeney@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v4 2/9] usertools/dpdk-devbind: support python3\n\tonly",
        "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": "Changed script to explicitly use python3 only to avoid\nmaintaining python 2 and removed deprecation notice.\n\nSigned-off-by: Louise Kilheeney <louise.kilheeney@intel.com>\n---\n usertools/dpdk-devbind.py | 22 ++++------------------\n 1 file changed, 4 insertions(+), 18 deletions(-)",
    "diff": "diff --git a/usertools/dpdk-devbind.py b/usertools/dpdk-devbind.py\nindex 86b6b53c40..bcdc5da881 100755\n--- a/usertools/dpdk-devbind.py\n+++ b/usertools/dpdk-devbind.py\n@@ -1,19 +1,14 @@\n-#! /usr/bin/env python\n+#!/usr/bin/env python3\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2010-2014 Intel Corporation\n #\n \n-from __future__ import print_function\n import sys\n import os\n import getopt\n import subprocess\n from os.path import exists, abspath, dirname, basename\n \n-if sys.version_info.major < 3:\n-    print(\"WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.\", file=sys.stderr)\n-    print(\"Please use Python 3 instead\", file=sys.stderr)\n-\n # The PCI base class for all devices\n network_class = {'Class': '02', 'Vendor': None, 'Device': None,\n                     'SVendor': None, 'SDevice': None}\n@@ -147,14 +142,6 @@ def usage():\n \n     \"\"\" % locals())  # replace items from local variables\n \n-\n-# This is roughly compatible with check_output function in subprocess module\n-# which is only available in python 2.7.\n-def check_output(args, stderr=None):\n-    '''Run a command and capture its output'''\n-    return subprocess.Popen(args, stdout=subprocess.PIPE,\n-                            stderr=stderr).communicate()[0]\n-\n # check if a specific kernel module is loaded\n def module_is_loaded(module):\n     global loaded_modules\n@@ -211,8 +198,7 @@ def get_pci_device_details(dev_id, probe_lspci):\n     device = {}\n \n     if probe_lspci:\n-        extra_info = check_output([\"lspci\", \"-vmmks\", dev_id]).splitlines()\n-\n+        extra_info = subprocess.check_output([\"lspci\", \"-vmmks\", dev_id]).splitlines()\n         # parse lspci details\n         for line in extra_info:\n             if len(line) == 0:\n@@ -248,7 +234,7 @@ def get_device_details(devices_type):\n     # first loop through and read details for all devices\n     # request machine readable format, with numeric IDs and String\n     dev = {}\n-    dev_lines = check_output([\"lspci\", \"-Dvmmnnk\"]).splitlines()\n+    dev_lines = subprocess.check_output([\"lspci\", \"-Dvmmnnk\"]).splitlines()\n     for dev_line in dev_lines:\n         if len(dev_line) == 0:\n             if device_type_match(dev, devices_type):\n@@ -276,7 +262,7 @@ def get_device_details(devices_type):\n         # check what is the interface if any for an ssh connection if\n         # any to this host, so we can mark it later.\n         ssh_if = []\n-        route = check_output([\"ip\", \"-o\", \"route\"])\n+        route = subprocess.check_output([\"ip\", \"-o\", \"route\"])\n         # filter out all lines for 169.254 routes\n         route = \"\\n\".join(filter(lambda ln: not ln.startswith(\"169.254\"),\n                              route.decode().splitlines()))\n",
    "prefixes": [
        "v4",
        "2/9"
    ]
}