From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 5F156A0C45; Mon, 13 Sep 2021 12:52:08 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 4877540E28; Mon, 13 Sep 2021 12:52:08 +0200 (CEST) Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mails.dpdk.org (Postfix) with ESMTP id A039B4014F; Mon, 13 Sep 2021 12:52:06 +0200 (CEST) X-IronPort-AV: E=McAfee;i="6200,9189,10105"; a="208871210" X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="208871210" Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Sep 2021 03:52:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,288,1624345200"; d="scan'208";a="696638998" Received: from silpixa00399126.ir.intel.com ([10.237.223.29]) by fmsmga006.fm.intel.com with ESMTP; 13 Sep 2021 03:52:03 -0700 From: Bruce Richardson To: dev@dpdk.org Cc: ciara.power@intel.com, david.hunt@intel.com, Bruce Richardson , stable@dpdk.org, Keith Wiles , Kevin Laatz , Anatoly Burakov Date: Mon, 13 Sep 2021 11:51:35 +0100 Message-Id: <20210913105137.130097-2-bruce.richardson@intel.com> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20210913105137.130097-1-bruce.richardson@intel.com> References: <20210913105137.130097-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH 1/3] usertools/dpdk-telemetry: fix flake8 errors X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Fix style errors reported by flake8. Fixes: 6a2967c112a3 ("usertools: add new telemetry script") Fixes: 2d9a697e41ca ("usertools: add file-prefix option for telemetry") Cc: stable@dpdk.org Signed-off-by: Bruce Richardson --- usertools/dpdk-telemetry.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/usertools/dpdk-telemetry.py b/usertools/dpdk-telemetry.py index e04aa04702..bdc617db18 100755 --- a/usertools/dpdk-telemetry.py +++ b/usertools/dpdk-telemetry.py @@ -9,7 +9,6 @@ import socket import os -import glob import json import errno import readline @@ -102,8 +101,8 @@ def get_dpdk_runtime_dir(fp): readline.set_completer_delims(readline.get_completer_delims().replace('/', '')) parser = argparse.ArgumentParser() -parser.add_argument('-f', '--file-prefix', \ - help='Provide file-prefix for DPDK runtime directory', default='rte') +parser.add_argument('-f', '--file-prefix', default='rte', + help='Provide file-prefix for DPDK runtime directory') args = parser.parse_args() -rdir = get_dpdk_runtime_dir(args.file_prefix) -handle_socket(os.path.join(rdir, 'dpdk_telemetry.{}'.format(TELEMETRY_VERSION))) +rd = get_dpdk_runtime_dir(args.file_prefix) +handle_socket(os.path.join(rd, 'dpdk_telemetry.{}'.format(TELEMETRY_VERSION))) -- 2.30.2