From 296139cf26f5c9eb1af553bf520b2d33ce8c2a45 Mon Sep 17 00:00:00 2001 From: Michael Green Date: Tue, 29 Dec 2020 10:36:56 -0800 Subject: [PATCH] change trio.hazmat to trio.lowlevel in read --- trio_paho_mqtt/trio_paho_mqtt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trio_paho_mqtt/trio_paho_mqtt.py b/trio_paho_mqtt/trio_paho_mqtt.py index cb73974..2b88ef0 100644 --- a/trio_paho_mqtt/trio_paho_mqtt.py +++ b/trio_paho_mqtt/trio_paho_mqtt.py @@ -67,7 +67,7 @@ class AsyncClient: with cs: while True: await self._event_should_read.wait() - await trio.hazmat.wait_readable(self.socket) + await trio.lowlevel.wait_readable(self.socket) self._client.loop_read() async def _loop_write(self):