[dpdk-dev] [PATCH 7/9] usertools/dpdk-pmdinfo: add python2 deprecation notice
Louise Kilheeney
louise.kilheeney at intel.com
Fri Jul 10 12:10:53 CEST 2020
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
More information about the dev
mailing list