Skip to content

Commit 365a69a

Browse files
committed
Use is test, to not trigger __eq__.
1 parent 3772c91 commit 365a69a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

trio_asyncio/util.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def abort_cb(raise_cancel_arg):
7676
asyncio.ensure_future(consume_next(), loop=loop)
7777

7878
item = await trio.hazmat.wait_task_rescheduled(abort_cb)
79-
if item == STOP:
79+
if item is STOP:
8080
break
8181
yield item
8282

0 commit comments

Comments
 (0)