Skip to content

Commit

Permalink
channel: hush 'stop-iteration-return' pylint error
Browse files Browse the repository at this point in the history
'delivery_tag_iter' is a counter, with (hopefully) an endless supply of
integers.  So this should never raise StopIteration.
  • Loading branch information
RemiCardona committed Dec 19, 2017
1 parent 248e9b0 commit aa915ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion aioamqp/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -790,7 +790,7 @@ def publish(self, payload, exchange_name, routing_key, properties=None, mandator
assert payload, "Payload cannot be empty"

if self.publisher_confirms:
delivery_tag = next(self.delivery_tag_iter)
delivery_tag = next(self.delivery_tag_iter) # pylint: disable=stop-iteration-return
fut = self._set_waiter('basic_server_ack_{}'.format(delivery_tag))

method_frame = amqp_frame.AmqpRequest(
Expand Down

0 comments on commit aa915ab

Please sign in to comment.