aboutsummaryrefslogtreecommitdiffstats
path: root/src/vpp-api
diff options
context:
space:
mode:
authorPaul Vinciguerra <pvinci@vinciconsulting.com>2018-11-28 16:17:56 -0800
committerOle Trøan <otroan@employees.org>2018-11-29 07:18:16 +0000
commit555ea9a105bd0681e3b94c77cf8d9cfe22be03a9 (patch)
tree6d036a1d4526619e814e8ff663bf5830ae1836cf /src/vpp-api
parent19515acddc343d1680d4a5d27f39456999498591 (diff)
VPP-1508: vpp_transport_socket.py fix import
Import queue in an py2-py3 compatable way. Change-Id: I83f166a959c4ee55438e3997edbcb596dc72059f Signed-off-by: Paul Vinciguerra <pvinci@vinciconsulting.com>
Diffstat (limited to 'src/vpp-api')
-rw-r--r--src/vpp-api/python/vpp_papi/vpp_transport_socket.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
index 29b4c658ca8..af9498533d9 100644
--- a/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
+++ b/src/vpp-api/python/vpp_papi/vpp_transport_socket.py
@@ -6,7 +6,10 @@ import struct
import threading
import select
import multiprocessing
-import queue
+try:
+ import queue as queue
+except ImportError:
+ import Queue as queue
import logging