Fix style errors reported by flake8. Fixes: 6a2967c112a3 ("usertools: add new telemetry script") Fixes: 2d9a697e41ca ("usertools: add file-prefix option for telemetry") Cc: sta...@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richard...@intel.com> --- 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