def _queue_for(self, queue): if queue not in self.queues: self.queues[queue] = Queue() return self.queues[queue]
def new_queue(self, queue): if queue in self.queues: return # silently ignore the fact that queue already exists self.queues[queue] = Queue()
def _new_queue(self, queue, **kwargs): if queue not in self.queues: self.queues[queue] = Queue()
def __init__(self, name, binding): self.queue = Queue() self._recv_name = name self._recv_binding = binding super(RemoteMailbox, self).__init__()