[7/9] usertools/dpdk-pmdinfo: add python2 deprecation notice
Checks
Commit Message
Cc: Neil Horman <nhorman@tuxdriver.com>
Signed-off-by: Louise Kilheeney <louise.kilheeney@intel.com>
---
usertools/dpdk-pmdinfo.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
Comments
On Fri, Jul 10, 2020 at 11:10:53AM +0100, Louise Kilheeney wrote:
> Cc: Neil Horman <nhorman@tuxdriver.com>
>
> Signed-off-by: Louise Kilheeney <louise.kilheeney@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@tuxdriver.com>
@@ -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:
"""