mirror of https://github.com/celery/kombu.git
Tests passing
This commit is contained in:
parent
9cd9ed7274
commit
1186cf82b4
|
@ -475,7 +475,7 @@ class Consumer(object):
|
||||||
"""
|
"""
|
||||||
callbacks = self.callbacks
|
callbacks = self.callbacks
|
||||||
if not callbacks:
|
if not callbacks:
|
||||||
raise NotImplementedError('Consumer does not have any callback')
|
raise NotImplementedError('Consumer does not have any callbacks')
|
||||||
[callback(body, message) for callback in callbacks]
|
[callback(body, message) for callback in callbacks]
|
||||||
|
|
||||||
def _basic_consume(self, queue, consumer_tag=None,
|
def _basic_consume(self, queue, consumer_tag=None,
|
||||||
|
@ -503,8 +503,8 @@ class Consumer(object):
|
||||||
if not self.on_decode_error:
|
if not self.on_decode_error:
|
||||||
raise
|
raise
|
||||||
self.on_decode_error(message, exc)
|
self.on_decode_error(message, exc)
|
||||||
|
else:
|
||||||
return on_m(message) if on_m else self.receive(decoded, message)
|
return on_m(message) if on_m else self.receive(decoded, message)
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return '<Consumer: %s>' % (self.queues, )
|
return '<Consumer: %s>' % (self.queues, )
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
"""
|
"""
|
||||||
|
ns
|
||||||
kombu.serialization
|
kombu.serialization
|
||||||
===================
|
===================
|
||||||
|
|
||||||
|
@ -381,5 +382,3 @@ registry._set_default_serializer('json')
|
||||||
# Load entrypoints from installed extensions
|
# Load entrypoints from installed extensions
|
||||||
for ep, args in entrypoints('kombu.serializers'):
|
for ep, args in entrypoints('kombu.serializers'):
|
||||||
register(ep.name, *args)
|
register(ep.name, *args)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue