Permalink
Browse files

2to3 says we should use a for loop here

  • Loading branch information...
1 parent 97ac8b0 commit eb7748d27ba148d32eecf67b0b80e62ddf87927f Ask Solem committed Dec 2, 2010
Showing with 3 additions and 2 deletions.
  1. +1 −1 examples/complete_send.py
  2. +2 −1 kombu/transport/virtual/__init__.py
@@ -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 @@ def close(self):
"""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

0 comments on commit eb7748d

Please sign in to comment.