numam-dpdk/usertools
Robin Jarry fe35622659 usertools: fix telemetry client with python 3
When running the dpdk-telemetry-client.py with python 3, we get the
following syntax errors:

  File "usertools/dpdk-telemetry-client.py", line 70
      print "\nResponse: \n", str(data)
                           ^
  SyntaxError: invalid syntax

  File "usertools/dpdk-telemetry-client.py", line 93
      print "\nResponse: \n", str(data)
                           ^
  SyntaxError: invalid syntax

  File "usertools/dpdk-telemetry-client.py", line 111
      file_path = sys.argv[1]
                            ^
  TabError: inconsistent use of tabs and spaces in indentation

Import print_function from __future__ and add parentheses where missing.
Also, use spaces for indentation everywhere.

Fixes: d1b94da4a4 ("usertools: add client script for telemetry")
Fixes: 53f293c9a7 ("usertools: replace unsafe input function")
Fixes: 4080e46c80 ("telemetry: support global metrics")
Cc: stable@dpdk.org

Signed-off-by: Robin Jarry <robin.jarry@6wind.com>
Acked-by: Stephen Hemminger <stephen@networkplumber.org>
2019-10-27 21:38:40 +01:00
..
cpu_layout.py
dpdk-devbind.py usertools: print binding errors to stderr 2019-07-31 00:22:33 +02:00
dpdk-pmdinfo.py usertools: fix pmdinfo with python 3 and pyelftools>=0.24 2019-10-27 21:35:51 +01:00
dpdk-setup.sh usertools: add baseband device binding 2019-07-04 23:44:58 +02:00
dpdk-telemetry-client.py usertools: fix telemetry client with python 3 2019-10-27 21:38:40 +01:00
meson.build