File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed
management/python/lib/qmf Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 19
19
20
20
""" Console API for Qpid Management Framework """
21
21
22
+ from __future__ import absolute_import
22
23
from __future__ import print_function
23
24
24
25
import os
38
39
from qpid .util import connect , ssl , URL
39
40
from qpid .codec010 import StringCodec as Codec
40
41
from threading import Lock , Condition , Thread , Semaphore
41
- from Queue import Queue , Empty
42
+ try :
43
+ from Queue import Queue , Empty
44
+ except ImportError :
45
+ from queue import Queue , Empty
42
46
from time import time , strftime , gmtime , sleep
43
- from cStringIO import StringIO
47
+ from io import StringIO
48
+
49
+ try :
50
+ long
51
+ except NameError :
52
+ long = int
53
+
54
+ try :
55
+ unicode
56
+ except NameError :
57
+ unicode = str
44
58
45
59
#import qpid.log
46
60
#qpid.log.enable(name="qpid.io.cmd", level=qpid.log.DEBUG)
You can’t perform that action at this time.
0 commit comments