Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/83815/?format=api
http://patches.dpdk.org/api/patches/83815/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201106124053.641946-1-ciara.power@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": "<20201106124053.641946-1-ciara.power@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201106124053.641946-1-ciara.power@intel.com", "date": "2020-11-06T12:40:53", "name": "usertools/cpu_layout: fix code to be pep8 style compliant", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "1883bda6c401d03c0f8849747a24ba1be37d9993", "submitter": { "id": 978, "url": "http://patches.dpdk.org/api/people/978/?format=api", "name": "Power, Ciara", "email": "ciara.power@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/20201106124053.641946-1-ciara.power@intel.com/mbox/", "series": [ { "id": 13722, "url": "http://patches.dpdk.org/api/series/13722/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=13722", "date": "2020-11-06T12:40:53", "name": "usertools/cpu_layout: fix code to be pep8 style compliant", "version": 1, "mbox": "http://patches.dpdk.org/series/13722/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/83815/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/83815/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 72192A04B5;\n\tFri, 6 Nov 2020 13:41:03 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 3FC4F69A4;\n\tFri, 6 Nov 2020 13:41:02 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id 0759F697A;\n Fri, 6 Nov 2020 13:40:58 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 06 Nov 2020 04:40:57 -0800", "from silpixa00400355.ir.intel.com (HELO\n silpixa00400355.ger.corp.intel.com) ([10.237.223.148])\n by fmsmga005.fm.intel.com with ESMTP; 06 Nov 2020 04:40:55 -0800" ], "IronPort-SDR": [ "\n GUl4shnHFE9c4iJQvV/c9WPcpo8vXW0qdLqBhnXvkZnjAHWfE2nesCGNwMMrcWbAo25O8Y8tbp\n X2ZNNFzmJEMw==", "\n 6/Etv0jIjy7EY/Ku0jauIWcG4ACTUuGHwi37wIptctr+Q6NkSzhJvVnuol/xJSoAuXiClkKFMB\n U58Ng3nOlK1A==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9796\"; a=\"187463493\"", "E=Sophos;i=\"5.77,456,1596524400\"; d=\"scan'208\";a=\"187463493\"", "E=Sophos;i=\"5.77,456,1596524400\"; d=\"scan'208\";a=\"529797830\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Ciara Power <ciara.power@intel.com>", "To": "dev@dpdk.org", "Cc": "stephen@networkplumber.org, bruce.richardson@intel.com,\n Ciara Power <ciara.power@intel.com>,\n andriy.berestovskyy@caviumnetworks.com, thomas@monjalon.net,\n stable@dpdk.org", "Date": "Fri, 6 Nov 2020 12:40:53 +0000", "Message-Id": "<20201106124053.641946-1-ciara.power@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH] usertools/cpu_layout: fix code to be pep8 style\n\tcompliant", "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": "The pycodestyle tool flagged the following issues, which are now fixed.\n\n$ pycodestyle cpu_layout.py\n cpu_layout.py:18:5: E722 do not use bare 'except'\n cpu_layout.py:62:14: E231 missing whitespace after ','\n\nFixes: deb87e6777c0 (\"usertools: use sysfs for CPU layout\")\nFixes: c9208f1dc967 (\"usertools: fix CPU layout with python 3\")\nCc: andriy.berestovskyy@caviumnetworks.com\nCc: thomas@monjalon.net\nCc: stable@dpdk.org\n\nSigned-off-by: Ciara Power <ciara.power@intel.com>\n---\n usertools/cpu_layout.py | 4 +---\n 1 file changed, 1 insertion(+), 3 deletions(-)", "diff": "diff --git a/usertools/cpu_layout.py b/usertools/cpu_layout.py\nindex cc39638213..891b9238fa 100755\n--- a/usertools/cpu_layout.py\n+++ b/usertools/cpu_layout.py\n@@ -15,8 +15,6 @@\n fd = open(\"{}/cpu{}/topology/core_id\".format(base_path, cpu))\n except IOError:\n continue\n- except:\n- break\n core = int(fd.read())\n fd.close()\n fd = open(\"{}/cpu{}/topology/physical_package_id\".format(base_path, cpu))\n@@ -59,7 +57,7 @@\n for c in cores:\n output = \"Core %s\" % str(c).ljust(max_core_id_len)\n for s in sockets:\n- if (s,c) in core_map:\n+ if (s, c) in core_map:\n output += \" \" + str(core_map[(s, c)]).ljust(max_core_map_len)\n else:\n output += \" \" * (max_core_map_len + 1)\n", "prefixes": [] }{ "id": 83815, "url": "