mirror of https://github.com/celery/kombu.git
2to3 says we should use a for loop here
This commit is contained in:
parent
97ac8b077c
commit
eb7748d27b
|
@ -2,7 +2,7 @@
|
|||
|
||||
Example producer that sends a single message and exits.
|
||||
|
||||
You can use `demo_receive.py` to receive the message sent.
|
||||
You can use `complete_receive.py` to receive the message sent.
|
||||
|
||||
"""
|
||||
|
||||
|
|
|
@ -437,7 +437,8 @@ class Channel(AbstractChannel):
|
|||
"""Close channel, cancel all consumers, and requeue unacked
|
||||
messages."""
|
||||
self.closed = True
|
||||
map(self.basic_cancel, list(self._consumers))
|
||||
for consumer in list(self._consumers):
|
||||
self.basic_cancel(consumer)
|
||||
self.qos.restore_unacked_once()
|
||||
self.connection.close_channel(self)
|
||||
self._cycle = None
|
||||
|
|
Loading…
Reference in New Issue