Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/78172/?format=api
https://patches.dpdk.org/api/patches/78172/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20200921120357.220588-2-kevin.laatz@intel.com/", "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": "<20200921120357.220588-2-kevin.laatz@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20200921120357.220588-2-kevin.laatz@intel.com", "date": "2020-09-21T12:03:48", "name": "[v7,01/10] usertools/dpdk-telemetry-client: support python3 only", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "8f33721f5d52f24b5c1e78d1555e5bdecf689189", "submitter": { "id": 921, "url": "https://patches.dpdk.org/api/people/921/?format=api", "name": "Kevin Laatz", "email": "kevin.laatz@intel.com" }, "delegate": { "id": 24651, "url": "https://patches.dpdk.org/api/users/24651/?format=api", "username": "dmarchand", "first_name": "David", "last_name": "Marchand", "email": "david.marchand@redhat.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20200921120357.220588-2-kevin.laatz@intel.com/mbox/", "series": [ { "id": 12378, "url": "https://patches.dpdk.org/api/series/12378/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=12378", "date": "2020-09-21T12:03:48", "name": "adding support for python 3 only", "version": 7, "mbox": "https://patches.dpdk.org/series/12378/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/78172/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/78172/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 B7D0EA04CC;\n\tMon, 21 Sep 2020 14:08:09 +0200 (CEST)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 530E11D993;\n\tMon, 21 Sep 2020 14:08:09 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by dpdk.org (Postfix) with ESMTP id 8941E1D97C\n for <dev@dpdk.org>; Mon, 21 Sep 2020 14:08:06 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Sep 2020 05:08:03 -0700", "from silpixa00399838.ir.intel.com ([10.237.213.224])\n by fmsmga007.fm.intel.com with ESMTP; 21 Sep 2020 05:08:01 -0700" ], "IronPort-SDR": [ "\n NA5mJQIYVGqtQ3m0OnI28nYMsEjxF4EEUwHKG4fXO5f0AblucYXMID+AmVlCOv0N4tX/GkNavy\n W5GPJuXRvDUw==", "\n fbyZeYxInAnHtw4Ry+55Hp8DYKVvOeLZ1IcrCU9jlWnk7Kvn0qMk2T0zbm4r1Hr4pBeRraPu30\n ugMqaowIHklQ==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9750\"; a=\"157742877\"", "E=Sophos;i=\"5.77,286,1596524400\"; d=\"scan'208\";a=\"157742877\"", "E=Sophos;i=\"5.77,286,1596524400\"; d=\"scan'208\";a=\"289925377\"" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "From": "Kevin Laatz <kevin.laatz@intel.com>", "To": "dev@dpdk.org", "Cc": "bruce.richardson@intel.com, anatoly.burakov@intel.com,\n robin.jarry@6wind.com, david.marchand@redhat.com,\n Louise Kilheeney <louise.kilheeney@intel.com>,\n Kevin Laatz <kevin.laatz@intel.com>", "Date": "Mon, 21 Sep 2020 13:03:48 +0100", "Message-Id": "<20200921120357.220588-2-kevin.laatz@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20200921120357.220588-1-kevin.laatz@intel.com>", "References": "<20200921114634.220328-1-kevin.laatz@intel.com>\n <20200921120357.220588-1-kevin.laatz@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v7 01/10] usertools/dpdk-telemetry-client:\n\tsupport python3 only", "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": "From: Louise Kilheeney <louise.kilheeney@intel.com>\n\nChanged script to explicitly use python3 only to avoid\nmaintaining python 2 and removed deprecation notice.\n\nCc: Kevin Laatz <kevin.laatz@intel.com>\n\nSigned-off-by: Louise Kilheeney <louise.kilheeney@intel.com>\nAcked-by: Bruce Richardson <bruce.richardson@intel.com>\n---\n usertools/dpdk-telemetry-client.py | 20 ++++----------------\n 1 file changed, 4 insertions(+), 16 deletions(-)", "diff": "diff --git a/usertools/dpdk-telemetry-client.py b/usertools/dpdk-telemetry-client.py\nindex 98d28fa89b..fa599046a4 100755\n--- a/usertools/dpdk-telemetry-client.py\n+++ b/usertools/dpdk-telemetry-client.py\n@@ -1,10 +1,7 @@\n-#! /usr/bin/env python\n+#! /usr/bin/env python3\n # SPDX-License-Identifier: BSD-3-Clause\n # Copyright(c) 2018 Intel Corporation\n \n-from __future__ import print_function\n-from __future__ import unicode_literals\n-\n import socket\n import os\n import sys\n@@ -18,15 +15,6 @@\n GLOBAL_METRICS_REQ = \"{\\\"action\\\":0,\\\"command\\\":\\\"global_stat_values\\\",\\\"data\\\":null}\"\n DEFAULT_FP = \"/var/run/dpdk/default_client\"\n \n-try:\n- raw_input # Python 2\n-except NameError:\n- raw_input = input # Python 3\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 class Socket:\n \n def __init__(self):\n@@ -53,7 +41,7 @@ def __init__(self): # Creates a client instance\n def __del__(self):\n try:\n if self.unregistered == 0:\n- self.unregister();\n+ self.unregister()\n except:\n print(\"Error - Client could not be destroyed\")\n \n@@ -86,7 +74,7 @@ def requestMetrics(self): # Requests metrics for given client\n \n def repeatedlyRequestMetrics(self, sleep_time): # Recursively requests metrics for given client\n print(\"\\nPlease enter the number of times you'd like to continuously request Metrics:\")\n- n_requests = int(raw_input(\"\\n:\"))\n+ n_requests = int(input(\"\\n:\"))\n print(\"\\033[F\") #Removes the user input from screen, cleans it up\n print(\"\\033[K\")\n for i in range(n_requests):\n@@ -107,7 +95,7 @@ def interactiveMenu(self, sleep_time): # Creates Interactive menu within the scr\n print(\"[4] Unregister client\")\n \n try:\n- self.choice = int(raw_input(\"\\n:\"))\n+ self.choice = int(input(\"\\n:\"))\n print(\"\\033[F\") #Removes the user input for screen, cleans it up\n print(\"\\033[K\")\n if self.choice == 1:\n", "prefixes": [ "v7", "01/10" ] }{ "id": 78172, "url": "