[dpdk-stable] [dpdk-dev] [PATCH] usertools: fix py3 syntax errors with dpdk-telemetry-client.py
Thomas Monjalon
thomas at monjalon.net
Sun Oct 27 21:39:38 CET 2019
17/10/2019 19:37, Stephen Hemminger:
> On Thu, 17 Oct 2019 19:32:12 +0200
> Robin Jarry <robin.jarry at 6wind.com> wrote:
>
> > 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: d1b94da4a4e0 ("usertools: add client script for telemetry")
> > Fixes: 53f293c9a783 ("usertools: replace unsafe input function")
> > Fixes: 4080e46c8078 ("telemetry: support global metrics")
> > Cc: Andrius Sirvys <andrius.sirvys at intel.com>
> > Cc: Ciara Power <ciara.power at intel.com>
> > Cc: Kevin Laatz <kevin.laatz at intel.com>
> > Cc: Reshma Pattan <reshma.pattan at intel.com>
> > Cc: stable at dpdk.org
> > Signed-off-by: Robin Jarry <robin.jarry at 6wind.com>
>
> Acked-by: Stephen Hemminger <stephen at networkplumber.org>
Applied, thanks
More information about the stable
mailing list