Skip to content

Commit

Permalink
Address issues reported by flake8.
Browse files Browse the repository at this point in the history
  • Loading branch information
stephan-hof committed Dec 16, 2022
1 parent 85a74f5 commit 9a73aa8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion examples/linux_asyncio_consumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import pprint

from confluent_kafka import Consumer
from confluent_kafka import KafkaException


assert sys.platform == 'linux', "This example is linux only, cause of eventfd"
Expand Down Expand Up @@ -67,7 +68,8 @@ async def poll(self, timeout=0):
return self._poll_no_timeout()

async def _poll_no_timeout(self):
while not (msg := await self._single_poll()): pass
while not (msg := await self._single_poll()):
pass
return msg

async def _single_poll(self):
Expand Down

0 comments on commit 9a73aa8

Please sign in to comment.