[dpdk-dev] [PATCH 7/9] usertools/dpdk-pmdinfo: add python2 deprecation notice

Neil Horman nhorman at tuxdriver.com
Fri Jul 10 13:00:07 CEST 2020


On Fri, Jul 10, 2020 at 11:10:53AM +0100, Louise Kilheeney wrote:
> Cc: Neil Horman <nhorman at tuxdriver.com>
> 
> Signed-off-by: Louise Kilheeney <louise.kilheeney at intel.com>
> ---
>  usertools/dpdk-pmdinfo.py | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/usertools/dpdk-pmdinfo.py b/usertools/dpdk-pmdinfo.py
> index 12f20735e..f9ed75517 100755
> --- a/usertools/dpdk-pmdinfo.py
> +++ b/usertools/dpdk-pmdinfo.py
> @@ -28,7 +28,9 @@
>  pcidb = None
>  
>  # ===========================================
> -
> +if sys.version_info.major < 3:
> +        print("WARNING: Python 2 is deprecated for use in DPDK, and will not work in future releases.", file=sys.stderr)
> +        print("Please use Python 3 instead", file=sys.stderr)
>  
>  class Vendor:
>      """
> -- 
> 2.17.1
> 
> 
Acked-by: Neil Horman <nhorman at tuxdriver.com>


More information about the dev mailing list