[dpdk-dev] [dpdk-stable] [PATCH] usertools: fix syntax warning in python 3.8

Thomas Monjalon thomas at monjalon.net
Sun Feb 16 22:13:13 CET 2020


12/02/2020 13:31, Thomas Faivre:
> Silent the following warning when running script with python 3.8:
> 
> > /usr/bin/dpdk-pmdinfo:542: SyntaxWarning: "is" with a literal.
> > Did you mean "=="?
> >   if (autoload_path is None or autoload_path is ""):
> 
> As autoload_path can only be None or a string, directly check its bool
> value.
> 
> Fixes: c67c9a5c646a ("tools: query binaries for HW and other support information")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Thomas Faivre <thomas.faivre at 6wind.com>

Applied, thanks





More information about the dev mailing list