Skip to content

Commit 13af026

Browse files
committed
Modify Queue module import to support python 2/3
1 parent 39a394b commit 13af026

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

tests/test_subscription_transport.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
import copy
99
import json
1010
import os
11-
import Queue
1211
import sys
1312
import threading
1413
import time
@@ -36,6 +35,11 @@
3635
else:
3736
import subprocess
3837

38+
if sys.version_info[0] < 3:
39+
import Queue
40+
else:
41+
import queue as Queue
42+
3943
TEST_PORT = 5000
4044
KEEP_ALIVE_TEST_PORT = TEST_PORT + 1
4145
EVENTS_TEST_PORT = TEST_PORT + 5

0 commit comments

Comments
 (0)