git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add python2 deprecation notice
[dpdk.git]
/
usertools
/
dpdk-telemetry-client.py
diff --git
a/usertools/dpdk-telemetry-client.py
b/usertools/dpdk-telemetry-client.py
index
35edb7c
..
98d28fa
100755
(executable)
--- a/
usertools/dpdk-telemetry-client.py
+++ b/
usertools/dpdk-telemetry-client.py
@@
-23,6
+23,10
@@
try:
except NameError:
raw_input = input # Python 3
except NameError:
raw_input = input # Python 3
+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 Socket:
def __init__(self):
class Socket:
def __init__(self):