Skip to content
Snippets Groups Projects
Commit a1749c88 authored by Jan David Mol's avatar Jan David Mol
Browse files

Task #7432: Made MsgBus python 2.4 compatible (kis/ccu)

parent 34868585
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ from qpid.messaging import *
broker="localhost"
options="create:always, node: { type: queue, durable: True}"
class ToBus():
class ToBus:
def __init__(self, address, options=options, broker=broker):
self.connection = Connection(broker)
self.connection.reconnect = True
......@@ -47,7 +47,7 @@ class ToBus():
def sendmsg(self,msg):
self.sender.send(msg)
class FromBus():
class FromBus:
def __init__(self, address, options=options, broker=broker):
self.connection = Connection(broker)
self.connection.reconnect = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment