From ea3ef0b85f54f791234126634aa7bdd3d6b39cc5 Mon Sep 17 00:00:00 2001 From: Bruce Richardson Date: Mon, 13 Sep 2021 11:51:35 +0100 Subject: [PATCH] usertools: fix flake8 compliance of telemetry script 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 Acked-by: Kevin Laatz Acked-by: Ciara Power --- 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 @@ Allows the user input commands and read the Telemetry response. import socket import os -import glob import json import errno import readline @@ -102,8 +101,8 @@ readline.set_completer(readline_complete) 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.20.1