Skip to content

Commit

Permalink
QPID-8631: fill_in python 3 incompatibilities in qmf/console.py
Browse files Browse the repository at this point in the history
  • Loading branch information
jiridanek committed Sep 30, 2023
1 parent 1077fe6 commit fc10e58
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions management/python/lib/qmf/console.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@

""" Console API for Qpid Management Framework """

from __future__ import absolute_import
from __future__ import print_function

import os
Expand All @@ -38,9 +39,17 @@
from qpid.util import connect, ssl, URL
from qpid.codec010 import StringCodec as Codec
from threading import Lock, Condition, Thread, Semaphore
from Queue import Queue, Empty
try:
from Queue import Queue, Empty
except ImportError:
from queue import Queue, Empty
from time import time, strftime, gmtime, sleep
from cStringIO import StringIO
from io import StringIO

try:
long
except NameError:
long = int

#import qpid.log
#qpid.log.enable(name="qpid.io.cmd", level=qpid.log.DEBUG)
Expand Down

0 comments on commit fc10e58

Please sign in to comment.