From f7fee4d74574562f920eb284b0e831c69220a9bd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20Ma=C5=9Blanka?= <piotr.maslanka@henrietta.com.pl> Date: Sat, 24 Dec 2016 04:32:31 +0100 Subject: [PATCH] empty exchange is called '' not None --- coolamqp/cluster.py | 2 +- setup.py | 6 ------ 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/coolamqp/cluster.py b/coolamqp/cluster.py index 084663a..578ef2a 100644 --- a/coolamqp/cluster.py +++ b/coolamqp/cluster.py @@ -83,7 +83,7 @@ class Cluster(object): from .handler import ClusterHandlerThread self.thread = ClusterHandlerThread(self) - def send(self, message, exchange=None, routing_key='', on_completed=None, on_failed=None): + def send(self, message, exchange='', routing_key='', on_completed=None, on_failed=None): """ Schedule a message to be sent. :param message: Message object to send diff --git a/setup.py b/setup.py index cf17ea1..3b25fbd 100644 --- a/setup.py +++ b/setup.py @@ -2,12 +2,6 @@ # coding=UTF-8 from setuptools import setup - -def reqs(): - with open('requirements.txt', 'r') as fin: - return [q.strip() for q in fin.readlines() if len(q.strip()) > 0] - - setup(name='CoolAMQP', version='0.9', description='AMQP client with sane reconnects', -- GitLab