summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAsk Solem <ask@celeryproject.org>2012-12-17 15:08:15 +0000
committerAsk Solem <ask@celeryproject.org>2012-12-17 15:10:09 +0000
commit16f870067bfbbbc59fbc520a3798e7ae5878a86f (patch)
tree47d6b1da80c5053c612f79103c2681ef306d2a45
parentaadef6758c6a3cb9ba3c5be591b35f249f4bae84 (diff)
downloadpy-amqp-16f870067bfbbbc59fbc520a3798e7ae5878a86f.tar.gz
Fixes tuple format bug. Closes #4
-rw-r--r--amqp/abstract_channel.py2
-rw-r--r--amqp/connection.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/amqp/abstract_channel.py b/amqp/abstract_channel.py
index 86c0608..5d128fe 100644
--- a/amqp/abstract_channel.py
+++ b/amqp/abstract_channel.py
@@ -82,7 +82,7 @@ class AbstractChannel(object):
amqp_method = self._METHOD_MAP[method_sig]
except KeyError:
raise AMQPNotImplementedError(
- 'Unknown AMQP method {0!r}'.format((method_sig, method_sig)))
+ 'Unknown AMQP method {0!r}'.format(method_sig))
if content is None:
return amqp_method(self, args)
diff --git a/amqp/connection.py b/amqp/connection.py
index e9e6b9c..50ebe93 100644
--- a/amqp/connection.py
+++ b/amqp/connection.py
@@ -287,7 +287,7 @@ class Connection(AbstractChannel):
if amqp_method is None:
raise AMQPNotImplementedError(
- 'Unknown AMQP method {0!r}'.format((method_sig, method_sig)))
+ 'Unknown AMQP method {0!r}'.format(method_sig))
if content is None:
return amqp_method(channel, args)