From 555ea9a105bd0681e3b94c77cf8d9cfe22be03a9 Mon Sep 17 00:00:00 2001 From: Paul Vinciguerra Date: Wed, 28 Nov 2018 16:17:56 -0800 Subject: VPP-1508: vpp_transport_socket.py fix import Import queue in an py2-py3 compatable way. Change-Id: I83f166a959c4ee55438e3997edbcb596dc72059f Signed-off-by: Paul Vinciguerra --- src/vpp-api/python/vpp_papi/vpp_transport_socket.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/vpp-api/python') 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 -- cgit 1.2.3-korg